Add #stripe_captured? method to Payment

This commit is contained in:
Matt-Yorkley
2021-06-10 10:33:41 +01:00
parent 65d9325287
commit 986d068e28

View File

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