Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save farhan-syed/083c597d72c168610dc570119e7b890e to your computer and use it in GitHub Desktop.
Save farhan-syed/083c597d72c168610dc570119e7b890e to your computer and use it in GitHub Desktop.
stripe.tokens.create(
{ customer: req.params.stripe_customer_cccount },
{ stripe_account: req.params.seller_stripe_account },
{ amount:req.params.price },
{ currency: "usd" },
{ description: 'Charge for ' + req.params.charge_description },
{ application_fee: application_fee}
function(err, token) {
// callback
if (error) {
console.log(error.message);
res.error(error.message);
}
else{
console.log(charge.status);
res.success(charge);
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment