From afa18611819d118f5deee7f427ff4469a076cd93 Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Wed, 8 Sep 2021 12:26:56 -0700 Subject: [PATCH] pass payment to Stripe Validator instead of the status object --- app/services/stripe_payment_status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/stripe_payment_status.rb b/app/services/stripe_payment_status.rb index a5ed2759d8..0cc03607c9 100644 --- a/app/services/stripe_payment_status.rb +++ b/app/services/stripe_payment_status.rb @@ -13,7 +13,7 @@ class StripePaymentStatus def stripe_status return if payment.response_code.blank? - Stripe::PaymentIntentValidator.new(self).call.status + Stripe::PaymentIntentValidator.new(payment).call.status rescue Stripe::StripeError # Stripe::PaymentIntentValidator will raise an error if the response from the Stripe API # call indicates the last attempted action on the payment intent failed.