#rahul-cloning

1 messages · Page 1 of 1 (latest)

errant venture
#

@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

topaz bone
#

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

errant venture
#

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)

topaz bone
#

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?

errant venture
#

the one on the platform that the payment method is currently attached to

#

it's the customer/payment method you are cloning from