hotfix: Stripe cancelPayment catch block (#416)

This commit is contained in:
Oliver Windall Juhl
2021-09-22 13:42:31 +02:00
committed by GitHub
parent 4ee6c0afb2
commit c715077be5
@@ -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