-
-
Save farhan-syed/e1668a2471e3683915d36a474b2921f7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
stripe.charges.createRefund( | |
req.params.chargeId, | |
{refund_application_fee: true}, | |
{stripe_account: req.params.stripeConnectedAccount}, | |
function(err, refund) { | |
if (err) { | |
res.error(err); | |
console.log(err); | |
} | |
else{ | |
console.log(refund); | |
res.success(refund); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment