#Giriraj

1 messages · Page 1 of 1 (latest)

drifting islandBOT
sweet oar
junior gulch
#

req_bd9hVaCfdDWMt7

sweet oar
#

that PaymentMethod belongs to your platform account, but you're creating the PaymentIntent on the connected account

#

the PaymentMethod must exist on the same account that you're creating the PaymentIntent on

junior gulch
#

yes, i forgot. let me check.

junior gulch
#

@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?

sweet oar
#

are you using direct charges?

junior gulch
#

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

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