mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-03 02:21:33 +00:00
pass payment to Stripe Validator instead of the status object
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user