mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-10 03:30:22 +00:00
change states after failure/requiring auth
This commit is contained in:
@@ -240,6 +240,7 @@ module Spree
|
||||
if response.cvv_result
|
||||
self.cvv_response_code = response.cvv_result['code']
|
||||
self.cvv_response_message = response.cvv_result['message']
|
||||
self.require_authorization if self.cvv_response_message.present?
|
||||
end
|
||||
end
|
||||
__send__("#{success_state}!")
|
||||
|
||||
@@ -41,6 +41,7 @@ class ProcessPaymentIntent
|
||||
|
||||
Result.new(ok: true)
|
||||
else
|
||||
payment.failed_authorization
|
||||
Result.new(ok: false, error: I18n.t("payment_could_not_complete"))
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user