Skip to content

Instantly share code, notes, and snippets.

@wbashir
Created August 29, 2013 02:37
Show Gist options
  • Save wbashir/6373689 to your computer and use it in GitHub Desktop.
Save wbashir/6373689 to your computer and use it in GitHub Desktop.
Refund Amount
/**
*
* @param chargeId
*/
refundChargeById: function (chargeId) {
var amount = 300; // this causes an undefined params error even though the underlying method doesn't expect {}
stripe.charges.refund(chargeId, amount,
function (err, refund) {
(err) ? console.log(err) : console.log(refund);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment