wip(backend): Work on payment processing
This commit is contained in:
parent
6cccdaf087
commit
cc538e5df2
8 changed files with 117 additions and 52 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue