Skip to main content
Returns the payment methods available for your organization’s checkout. Use it to decide which payment methods to render with initMethod().
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

A Promise<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

You can also call it as Billing.getAvailablePaymentMethods().