#rahul-cloning
1 messages · Page 1 of 1 (latest)
@topaz bone I'm pretty sure this means that you are not passing the Stripe-Account header, or if you do pass it, you're using a variable that's null
do you have a request ID for the error? https://support.stripe.com/questions/finding-the-id-for-an-api-request
let me see how to get the request id on error.
@errant venture
req_65IQxHG6l5mA69
await stripe.paymentMethods.create(
{
customer: ccCustomerId,
payment_method: paymentMethod,
},
{
stripeAccount: vendorId,
}
)
This is the call I'm using
your paymentMethod variable is null
since there's no ID appearing on that API request when we recieve it
so you should debug that and make sure you are passing the ID(it should be the pm_xxx ID of the PaymentMethod on the platform account's Customer that you are cloning from)
oh found it, thanks man! Also in customer param which customer do we need to pass? The one which is attached to the current payment method or the one where we need to attach it?