-
-
Save farhan-syed/85e0a2f4b241fae59c4c3c6f2b8c35a1 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