Created
September 27, 2022 09:18
-
-
Save KrishanMadushanka/f9a1d5a1f08b6904004a6dbe7991c76e 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
| app.post("/refund-direct", async (req, res) => { | |
| const refund = await stripe.refunds.create( | |
| { | |
| charge: "<charge id>", | |
| refund_application_fee: true, | |
| }, | |
| { | |
| stripeAccount: "<connected account id>", | |
| } | |
| ); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment