mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
Add #stripe_captured? method to Payment
This commit is contained in:
@@ -164,6 +164,10 @@ module Spree
|
||||
Stripe::PaymentIntentValidator.new.call(self).status
|
||||
end
|
||||
|
||||
def stripe_captured?
|
||||
stripe_status == "succeeded"
|
||||
end
|
||||
|
||||
def clear_authorization_url
|
||||
update_attribute(:cvv_response_message, nil)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user