Skip to main content
Use this method to list the customer’s available payment methods, plus any cards they have on file. For request and response details, see the List payment methods API.
Get payment methods

Result

client.getPaymentMethods() returns a Result<{ data: ListPaymentMethodsResponse }, GetPaymentMethodsError>.

Result envelope

Result<{ data: ListPaymentMethodsResponse }, GetPaymentMethodsError>

ListPaymentMethodsResponse

PaymentMethodConfig

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.
types.ts