Created
June 19, 2020 14:56
-
-
Save SimonHoiberg/7988de5f913362e2e3361b4f5b42e810 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
class StripeManager { | |
... | |
public static async retryInvoice(customerID: string, paymentMethodID: string, invoiceID: string) { | |
const request = await fetch('https://your-endpoint/stripe/retry-invoice', { | |
method: 'POST', | |
body: JSON.stringify({ | |
customerID, | |
paymentMethodID, | |
invoiceID, | |
}), | |
}); | |
await request.json(); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment