Skip to content

Instantly share code, notes, and snippets.

@leonkyr
Created August 28, 2019 01:59
Show Gist options
  • Save leonkyr/9ce2d043b1fd10856e0224344ae41c09 to your computer and use it in GitHub Desktop.
Save leonkyr/9ce2d043b1fd10856e0224344ae41c09 to your computer and use it in GitHub Desktop.
stripe-connect-charge-on-behalf
stripe.charges.create({
amount: 2098,
currency: "aud",
source: "tok_mastercard_debit_transferSuccess",
description: "Charge for Tradie 2 - Fix",
receipt_email: "[email protected]",
on_behalf_of: accountId,
}).then(function (charge) {
// asynchronously called
console.log(JSON.stringify(charge, null, 2));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment