This method covers checkouts that run through Primer. For Stripe checkouts,
use Billing.stripe.getAvailablePaymentMethods().
Parameters
string
required
Your organization ID. This method doesn’t read
configure().
string
required
The API base URL. Use
https://billing.funnelfox.com unless you point to a
custom backend.string
ISO country code to check availability for.
Returns
APromise<PaymentMethod[]> with the available payment methods:
PAYMENT_CARD, PAYPAL, GOOGLE_PAY, or APPLE_PAY.
When Apple Pay is available, the list leaves out Google Pay. The
default checkout follows
the same rule.
Example
Billing.getAvailablePaymentMethods().