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_3ds2_authenticated_data(post, options)
        three_d_secure_options = options[:three_d_secure]
        if three_d_secure_options[:authentication_response_status].nil?
          authentication_response = three_d_secure_options[:directory_response_status]
        else
          authentication_response = three_d_secure_options[:authentication_response_status]
        end
        post[:mpiData] = {
          threeDSVersion: three_d_secure_options[:version],
          eci: three_d_secure_options[:eci],
          cavv: three_d_secure_options[:cavv],
          dsTransID: three_d_secure_options[:ds_transaction_id],
          directoryResponse: three_d_secure_options[:directory_response_status],
          authenticationResponse: authentication_response
        }
      end
def add_3ds2_authenticated_data ( post , options ) three_d_secure_options = options [ :three_d_secure ] if three_d_secure_options [ :authentication_response_status ] . nil? authentication_response = three_d_secure_options [ :directory_response_status ] else authentication_response = three_d_secure_options [ :authentication_response_status ] end post [ :mpiData ] = { threeDSVersion : three_d_secure_options [ :version ] , eci : three_d_secure_options [ :eci ] , cavv : three_d_secure_options [ :cavv ] , dsTransID : three_d_secure_options [ :ds_transaction_id ] , directoryResponse : three_d_secure_options [ :directory_response_status ] , authenticationResponse : authentication_response } end
we recommend setting up merchant-specific endpoints.
we recommend setting up merchant - specific endpoints .
# If the transaction was authenticated in a frictionless flow, send the transStatus from the ARes.
post
<not_specific>
options
<not_specific>