Skip to content

Instantly share code, notes, and snippets.

@KrishanMadushanka
Created September 27, 2022 09:18
Show Gist options
  • Select an option

  • Save KrishanMadushanka/f9a1d5a1f08b6904004a6dbe7991c76e to your computer and use it in GitHub Desktop.

Select an option

Save KrishanMadushanka/f9a1d5a1f08b6904004a6dbe7991c76e to your computer and use it in GitHub Desktop.
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