hotfix: Stripe cancelPayment catch block (#416)

This commit is contained in:
Oliver Windall Juhl authored and GitHub committed 2021-09-22 13:42:31 +02:00
1 parent 4ee6c0afb2
commit c715077be5
1 file changed
+1 -1
@@ -333,7 +333,7 @@ class StripeProviderService extends PaymentService {
async cancelPayment(payment) {
const { id } = payment.data
try {
return this.stripe_.paymentIntents.cancel(id)
return await this.stripe_.paymentIntents.cancel(id)
} catch (error) {
if (error.payment_intent.status === "canceled") {
return error.payment_intent