Lista alla betalningsmetoder kopplade till en specifik kund.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
const response = await client.customers.retrievePaymentMethods('customer_id');
console.log(response.items);{
"items": [
{
"payment_method": "card",
"payment_method_id": "<string>",
"card": "<unknown>",
"last_used_at": "2023-11-07T05:31:56Z",
"payment_method_type": "<unknown>",
"recurring_enabled": true
}
]
}Var denna sida till hjälp?
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});
const response = await client.customers.retrievePaymentMethods('customer_id');
console.log(response.items);{
"items": [
{
"payment_method": "card",
"payment_method_id": "<string>",
"card": "<unknown>",
"last_used_at": "2023-11-07T05:31:56Z",
"payment_method_type": "<unknown>",
"recurring_enabled": true
}
]
}