#binayak

1 messages · Page 1 of 1 (latest)

gilded streamBOT
teal crest
#

What's the context? Where are you seeing that?

jovial sapphire
#

I want to add the application fee, hence was adding the destination charge

#

// Set your secret key. Remember to switch to your live secret key in production.
// See your keys here: https://dashboard.stripe.com/apikeys
const stripe = require('stripe')('sk_test_51J7k95Cd3LRlmO28v32DBPeCbJpjoe2b8YLeayKF1bHmh1nHPOdcTSWPT6q5lOve1uTNfXm8g0Ku0Qu1zxDKH3in007t6jQqsQ');

const paymentIntent = await stripe.paymentIntents.create({
amount: 1000,
currency: 'gbp',
application_fee_amount: 123,
transfer_data: {
destination: '{{CONNECTED_STRIPE_ACCOUNT_ID}}',
},
});

#

that's snippet in the doc

#

here what should I provide in the "destination" key

teal crest
#

It's the acct_xxx ID of the connected account you want to transfer the balance of the payment (minus application_fee_amount) to

jovial sapphire
#

okay

#

means the organization's stripe account

teal crest
#

I don't know what 'organisation' is

jovial sapphire
#

or the customer's account?

teal crest
#

It's the connected account you're creating the destination charge for

jovial sapphire
#

if I am using a platform XYZ, to pay $100 to you. And application_fee_amount is $5, so to transfer the rest i.e $95, I will add your account Id in destination?

#

or XYZ's account Id?

#

my query is as simple as that

teal crest
#

It's the connected account, not the platform

jovial sapphire
#

okay, is it different from cus_****

jovial sapphire
#

okay thanks for the help