#binayak
1 messages · Page 1 of 1 (latest)
What's the context? Where are you seeing that?
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}}',
},
});
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
that's snippet in the doc
here what should I provide in the "destination" key
It's the acct_xxx ID of the connected account you want to transfer the balance of the payment (minus application_fee_amount) to
I don't know what 'organisation' is
or the customer's account?
It's the connected account you're creating the destination charge for
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
It's the connected account, not the platform
okay, is it different from cus_****
Yes
okay thanks for the help