#daagcentral

1 messages · Page 1 of 1 (latest)

wild dewBOT
sharp parrot
#

Direct charges are only recommended if you're using Standard accounts. Destination charges are only recommended if you're using Custom and Express accounts

noble sedge
#

so our intent used to look like this:

stripe.paymentIntents.create({
amount: 5500,
currency: 'usd',
application_fee_amount: 246,
automatic_payment_methods: { enabled: true },
metadata: { custom_id: '92b57243-0d61-4214-8374-079541be0515' },
transfer_data: { destination: 'acct_SOMESELLERACCOUNT' }
})

what we should do is this:
stripe.paymentIntents.create({
amount: 5500,
currency: 'usd',
application_fee_amount: 246,
automatic_payment_methods: { enabled: true },
metadata: { custom_id: '92b57243-0d61-4214-8374-079541be0515' },
}, {
stripeAccount: 'acct_SOMESELLERID',
})

sharp parrot
#

Yeah

#

Except you should only do that if you're using standard accounts

noble sedge
#

we are using standard accounts

#

Thank you!!!

sharp parrot
#

No problem

#

You should also fully read that doc to understand all the differences with direct charges

noble sedge
#

will do

#

Just to confirm, we will get our application_fee, seller gets total - stripe fees right

sharp parrot
#

Correct

noble sedge
#

we keep getting this

#

message
:
"No such payment_intent: 'pi_3NgYc4GRs6B1g8ST1tNCuFrb'"

sharp parrot
#

When trying to do what?

noble sedge
#

when completing the payment

sharp parrot
#

Again, recommend reading the direct charges doc. It sounds like you're not initializing Stripe clientside with the connect account header

noble sedge
#

I'm an idiot haha. fixing!

sharp parrot
#

No worries!

noble sedge
#

everything worked. Stripe has the best dev support ever!

#

Thank you