paymentMethodId, list the customer’s stored payment methods with client.getPaymentMethods().
Delete a payment method
Parameters
Result
client.deletePaymentMethod() returns a Result<void, DevPlatformApiError>.
The API responds with 204 No Content on success, so result.value is undefined — there is no response body to read. Check result.ok to confirm the delete succeeded.
Result envelope
Result<void, DevPlatformApiError>
DevPlatformApiError
The standard MoonPay Platform API error shape.
TS Definition
TS Definition
types.ts