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_3ds(post, options)
        if three_ds_2_options = options[:three_ds_2]
          device_channel = three_ds_2_options[:channel]
          if device_channel == 'app'
            post[:threeDS2RequestData] = { deviceChannel: device_channel }
          else
            add_browser_info(three_ds_2_options[:browser_info], post)
            post[:threeDS2RequestData] = { deviceChannel: device_channel, notificationURL: three_ds_2_options[:notification_url] }
          end
          if options.has_key?(:execute_threed)
            post[:additionalData][:executeThreeD] = options[:execute_threed]
            post[:additionalData][:scaExemption] = options[:sca_exemption] if options[:sca_exemption]
          end
        else
          return unless !options[:execute_threed].nil? || !options[:threed_dynamic].nil?
          post[:browserInfo] = { userAgent: options[:user_agent], acceptHeader: options[:accept_header] } if options[:execute_threed] || options[:threed_dynamic]
          post[:additionalData] ||= {}
          post[:additionalData][:executeThreeD] = options[:execute_threed] if !options[:execute_threed].nil?
        end
      end
def add_3ds ( post , options ) if three_ds_2_options = options [ :three_ds_2 ] device_channel = three_ds_2_options [ :channel ] if device_channel == 'app' post [ :threeDS2RequestData ] = { deviceChannel : device_channel } else add_browser_info ( three_ds_2_options [ :browser_info ] , post ) post [ :threeDS2RequestData ] = { deviceChannel : device_channel , notificationURL : three_ds_2_options [ :notification_url ] } end if options . has_key? ( :execute_threed ) post [ :additionalData ] [ :executeThreeD ] = options [ :execute_threed ] post [ :additionalData ] [ :scaExemption ] = options [ :sca_exemption ] if options [ :sca_exemption ] end else return unless ! options [ :execute_threed ] . nil? || ! options [ :threed_dynamic ] . nil? post [ :browserInfo ] = { userAgent : options [ :user_agent ] , acceptHeader : options [ :accept_header ] } if options [ :execute_threed ] || options [ :threed_dynamic ] post [ :additionalData ] ||= { } post [ :additionalData ] [ :executeThreeD ] = options [ :execute_threed ] if ! options [ :execute_threed ] . nil? end end
we recommend setting up merchant-specific endpoints.
we recommend setting up merchant - specific endpoints .
post
<not_specific>
options
<not_specific>