Destination Charges in stripe

mehraas

Ashish Mehra

Posted on October 24, 2018

Destination Charges in stripe

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 ?

💖 💪 🙅 🚩
mehraas
Ashish Mehra

Posted on October 24, 2018

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Destination Charges in stripe
help Destination Charges in stripe

October 24, 2018