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