Created
August 29, 2013 02:37
-
-
Save wbashir/6373689 to your computer and use it in GitHub Desktop.
Refund Amount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* @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