1
0
Fork 0

wip(backend): Work on payment processing

This commit is contained in:
joostdecock 2023-07-31 09:03:55 +02:00
parent 6cccdaf087
commit cc538e5df2
8 changed files with 117 additions and 52 deletions

View file

@ -301,6 +301,13 @@ Backend.prototype.sendLanguageSuggestion = async function (data) {
return responseHandler(await api.post(`/flows/language-suggestion/jwt`, data, this.auth))
}
/*
* Create payment intent
*/
Backend.prototype.createPaymentIntent = async function (data) {
return responseHandler(await api.post(`/payments/intent`, data), 201)
}
export function useBackend(token = false) {
/*
* This backend object is what we'll end up returning