Here is the link of stripe documentation for creating destination charges
https://stripe.com/docs/connect/destination-charges
// Set your secret key: remember to change this to your live secret key in production
// See your keys here: https://dashboard.stripe.com/account/apikeys
var stripe = require("stripe")("sk_test_############");
stripe.charges.create({
amount: 1000,
currency: "usd",
source: "tok_visa",
destination: {
account: "{CONNECTED_STRIPE_ACCOUNT_ID}",
},
}).then(function(charge) {
// asynchronously called
});
What CONNECTED_STRIPE_ACCOUNT_ID is ? and how I suppose to retreive it ?