pass payment to Stripe Validator instead of the status object

This commit is contained in:
Andy Brett
2021-09-08 12:26:56 -07:00
parent 32a2610e7d
commit afa1861181

View File

@@ -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.