lib/active_merchant/billing/gateways/adyen.rb in activemerchant-1.82.0 vs lib/active_merchant/billing/gateways/adyen.rb in activemerchant-1.83.0

- old
+ new

@@ -112,13 +112,17 @@ def add_extra_data(post, payment, options) post[:shopperEmail] = options[:shopper_email] if options[:shopper_email] post[:shopperIP] = options[:shopper_ip] if options[:shopper_ip] post[:shopperReference] = options[:shopper_reference] if options[:shopper_reference] post[:fraudOffset] = options[:fraud_offset] if options[:fraud_offset] - post[:selectedBrand] = options[:selected_brand] || NETWORK_TOKENIZATION_CARD_SOURCE[payment.source.to_s] if payment.is_a?(NetworkTokenizationCreditCard) + 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[:additionalData] ||= {} + post[:additionalData][:overwriteBrand] = normalize(options[:overwrite_brand]) if options[:overwrite_brand] + post[:additionalData][:customRoutingFlag] = options[:custom_routing_flag] if options[:custom_routing_flag] end def add_shopper_interaction(post, payment, options={}) if (payment.respond_to?(:verification_value) && payment.verification_value) || payment.is_a?(NetworkTokenizationCreditCard) shopper_interaction = 'Ecommerce' @@ -146,9 +150,10 @@ amount = { value: amount(money), currency: options[:currency] || currency(money) } post[:amount] = amount + post[:recurringProcessingModel] = options[:recurring_processing_model] if options[:recurring_processing_model] end def add_invoice_for_modification(post, money, options) amount = { value: amount(money),