We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1d3858 commit 2b22cf0Copy full SHA for 2b22cf0
core/app/models/spree/payment/processing.rb
@@ -165,12 +165,14 @@ def handle_void_response(response)
165
166
# @raises Spree::Core::GatewayError
167
def check_payment_preconditions!
168
- return if payment_method.nil?
+ return if processing?
169
+ return unless payment_method
170
return unless payment_method.source_required?
171
+
172
unless source
173
gateway_error(I18n.t('spree.payment_processing_failed'))
174
end
- return if processing?
175
176
unless payment_method.supports?(source)
177
invalidate!
178
gateway_error(I18n.t('spree.payment_method_not_supported'))
0 commit comments