#rahul_76573

1 messages · Page 1 of 1 (latest)

mighty sundialBOT
zealous sentinel
#

hi! you create the Price on the platform account but then you create the PaymentLink on the connected account( with the stripeAccount option). They're different accounts, they can't see the Price objects on the other one, hence the error.

hasty gate
#

ohh, got it basically in stripeAccount I should have passed the platform account id?

zealous sentinel
#

no

#

depends what you're trying to do

#

who do you want to process the payment, the plaform or the connected account?

hasty gate
#

I am actually trying to do this, where the connected account receives the all money, and send a portion of application fee back to the platform account, can you please guide me by looking at the above code snippet what exactly I am doing wrong

zealous sentinel
#

cool

#

then you need to create the Price objrct on the connected account

#

so pass stripeAccount in the call(in a second parameter object in the same way it's done for the paymentLinks.create call) to stripe.prices.create and to stripe.products.create so that you create all the objects on the connected account.

hasty gate
#

Thanks @zealous sentinel , It worked 🙂