Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save KrishanMadushanka/586cef7a3f8c339182616aa3eaa5a5e9 to your computer and use it in GitHub Desktop.
app.post("/refund-destination", async (req, res) => {
const refund = await stripe.refunds.create({
charge: "<charge id>",
reverse_transfer: true,
refund_application_fee: true,
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment