Payment Methods Service
Manage stored payment methods with the SDK.
Methods
getMany()
List payment methods for a customer.
const methods = await sdk.paymentMethods.getMany({
merchantInternalCustomerCode: 'customer-123',
});
getOne()
Get a specific payment method.
const method = await sdk.paymentMethods.getOne({
id: 'payment-method-id',
});
syncOne()
Sync payment method with provider.
const synced = await sdk.paymentMethods.syncOne({
id: 'payment-method-id',
});
See API Payment Methods for more information.