lib/active_merchant/billing/gateways/barclaycard_smartpay.rb in activemerchant-1.75.0 vs lib/active_merchant/billing/gateways/barclaycard_smartpay.rb in activemerchant-1.76.0

- old
+ new

@@ -209,11 +209,11 @@ return response['result'] if response.has_key?('result') # Store/Recurring request 'Failure' # Negative fallback in case of error end def success_from(response) - return true if response.has_key?('authCode') return true if response['result'] == 'Success' + return true if response['resultCode'] == 'Authorised' return true if response['resultCode'] == 'Received' successful_responses = %w([capture-received] [cancel-received] [refund-received]) successful_responses.include?(response['response']) end