lib/active_merchant/billing/gateways/adyen.rb
# we recommend setting up merchant-specific endpoints.
# https://docs.adyen.com/developers/api-manual#apiendpoints
we recommend setting up merchant-specific endpoints.
we recommend setting up merchant - specific endpoints .
def add_extra_data(post, payment, options)
        post[:telephoneNumber] = (options[:billing_address][:phone_number] if options.dig(:billing_address, :phone_number)) || (options[:billing_address][:phone] if options.dig(:billing_address, :phone)) || ''
        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]
        post[:additionalData][:adjustAuthorisationData] = options[:adjust_authorisation_data] if options[:adjust_authorisation_data]
        post[:additionalData][:industryUsage] = options[:industry_usage] if options[:industry_usage]
        post[:additionalData][:RequestedTestAcquirerResponseCode] = options[:requested_test_acquirer_response_code] if options[:requested_test_acquirer_response_code] && test?
        post[:deviceFingerprint] = options[:device_fingerprint] if options[:device_fingerprint]
        add_shopper_data(post, options)
        add_risk_data(post, options)
        add_shopper_reference(post, options)
        add_merchant_data(post, options)
      end
def add_extra_data ( post , payment , options ) post [ :telephoneNumber ] = ( options [ :billing_address ] [ :phone_number ] if options . dig ( :billing_address , :phone_number ) ) || ( options [ :billing_address ] [ :phone ] if options . dig ( :billing_address , :phone ) ) || '' 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 ] post [ :additionalData ] [ :adjustAuthorisationData ] = options [ :adjust_authorisation_data ] if options [ :adjust_authorisation_data ] post [ :additionalData ] [ :industryUsage ] = options [ :industry_usage ] if options [ :industry_usage ] post [ :additionalData ] [ :RequestedTestAcquirerResponseCode ] = options [ :requested_test_acquirer_response_code ] if options [ :requested_test_acquirer_response_code ] && test? post [ :deviceFingerprint ] = options [ :device_fingerprint ] if options [ :device_fingerprint ] add_shopper_data ( post , options ) add_risk_data ( post , options ) add_shopper_reference ( post , options ) add_merchant_data ( post , options ) end
we recommend setting up merchant-specific endpoints.
we recommend setting up merchant - specific endpoints .
post
<not_specific>
payment
<not_specific>
options
<not_specific>