Get payment methods
Result
client.getPaymentMethods() returns a Result<{ data: ListPaymentMethodsResponse }, GetPaymentMethodsError>.
Result envelope
Result<{ data: ListPaymentMethodsResponse }, GetPaymentMethodsError>
ListPaymentMethodsResponse
PaymentMethodConfig
Bank transfers appear here alongside cards and wallets:
sepa for SEPA (EUR). Offer sepa in the headless flow only when availability.active is true and capabilities.requiresWidget is false (a requiresWidget: true method must complete in the MoonPay widget instead). SEPA doesn’t create a stored payment method, so it never appears in paymentMethods (which lists stored cards). To pay with a bank transfer, quote against its type and open the headless Buy frame. See Bank transfer.
PaymentMethodCapabilities
PaymentMethodAvailability
StoredPaymentMethod
A payment method the customer has stored on file. Use the id directly in client.getQuote() to quote against a specific stored payment method. Stored cards extend the base shape with card details — see the API reference for the full shape, including network brand, expiry, and last4.
GetPaymentMethodsError
GetPaymentMethodsError is the standard MoonPay Platform API error shape, DevPlatformApiError.
TS Definition
TS Definition
types.ts