#putte
1 messages · Page 1 of 1 (latest)
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Can you share the requestId, what Customer Id are you trying to retrieve their payment method ?
You are not passing the customerId in this request
In order to retrieve customer's payment methods:
https://stripe.com/docs/api/payment_methods/customer
const paymentMethod = await stripe.customers.retrievePaymentMethod(
'cus_Lyi6tQfyR4FHRu',
'pm_1Ml8etF1SIVBSMvIRXRgF04O'
);
No worries, we are here to help!