#Giriraj
1 messages · Page 1 of 1 (latest)
hi there, can you share the request id [0]? it'd look like req_xxx
req_bd9hVaCfdDWMt7
that PaymentMethod belongs to your platform account, but you're creating the PaymentIntent on the connected account
did you forget to clone the PaymentMethod to the connected account? https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods
the PaymentMethod must exist on the same account that you're creating the PaymentIntent on
yes, i forgot. let me check.
@sweet oar i m creating pm_1N3CDWBSgwhLUexTtz2cenJn using below code.
const setupIntent = await stripe.setupIntents.create({
customer: customerId,
payment_method_types: ["card"],
})
and i need to pay amount using pm_1N3CDWBSgwhLUexTtz2cenJn to stripe connect account. it's possible?
are you using direct charges?
i m trying to charges using below code
var paymentIntentParams = {
amount: amount,
currency: "usd",
customer: customerId,
payment_method: pm_1N3CDWBSgwhLUexTtz2cenJn,
off_session: true,
confirm: true,
payment_method_types: ['card'],
};
const paymentIntent = await stripe.paymentIntents.create(
paymentIntentParams,
{
stripeAccount: 'acct_1NGcDxPY07jfptqo',
}
);
it's correct way? @sweet oar
was the PaymentMethod cloned to or created on the connected account? If yes, you can go ahead and try running your code to see if it works as you expect