lib/active_merchant/billing/gateways/adyen.rb in activemerchant-1.99.0 vs lib/active_merchant/billing/gateways/adyen.rb in activemerchant-1.100.0

- old
+ new

@@ -184,10 +184,11 @@ post[:fraudOffset] = options[:fraud_offset] if options[:fraud_offset] post[:selectedBrand] = options[:selected_brand] if options[:selected_brand] post[:selectedBrand] ||= NETWORK_TOKENIZATION_CARD_SOURCE[payment.source.to_s] if payment.is_a?(NetworkTokenizationCreditCard) post[:deliveryDate] = options[:delivery_date] if options[:delivery_date] post[:merchantOrderReference] = options[:merchant_order_reference] if options[:merchant_order_reference] + post[:captureDelayHours] = options[:capture_delay_hours] if options[:capture_delay_hours] post[:additionalData] ||= {} post[:additionalData][:overwriteBrand] = normalize(options[:overwrite_brand]) if options[:overwrite_brand] post[:additionalData][:customRoutingFlag] = options[:custom_routing_flag] if options[:custom_routing_flag] post[:additionalData]['paymentdatasource.type'] = NETWORK_TOKENIZATION_CARD_SOURCE[payment.source.to_s] if payment.is_a?(NetworkTokenizationCreditCard) post[:additionalData][:authorisationType] = options[:authorisation_type] if options[:authorisation_type] @@ -462,10 +463,10 @@ false end end def message_from(action, response) - return authorize_message_from(response) if action.to_s == 'authorise' + return authorize_message_from(response) if action.to_s == 'authorise' || action.to_s == 'authorise3d' response['response'] || response['message'] end def authorize_message_from(response) if response['refusalReason'] && response['additionalData'] && response['additionalData']['refusalReasonRaw']