PaymentMethodsResource
This class is used to send requests to Payment Method API Routes part of the Store Customer API Routes. All its method
are available in the JS Client under the medusa.customers.paymentMethods
property.
All methods in this class require customer authentication.
Methods
list
Retrieve the logged-in customer's saved payment methods. This method only works with payment providers created with the deprecated Payment Service interface. The payment methods are saved using the Payment Service's third-party service, and not on the Medusa backend. So, they're retrieved from the third-party service.
Example
Parameters
customHeaders
Record<string, any>RequiredCustom headers to attach to the request.
Default: {}
Returns
ResponsePromise
ResponsePromise<StoreCustomersListPaymentMethodsRes>RequiredResolves to the customer's payment methods.
ResponsePromise
ResponsePromise<StoreCustomersListPaymentMethodsRes>RequiredWas this section helpful?