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_payment(post, payment, options, action = nil)
        if payment.is_a?(String)
          _, _, recurring_detail_reference = payment.split('#')
          post[:selectedRecurringDetailReference] = recurring_detail_reference
          options[:recurring_contract_type] ||= 'RECURRING'
        elsif payment.is_a?(Check)
          add_bank_account(post, payment, options, action)
        else
          add_mpi_data_for_network_tokenization_card(post, payment) if payment.is_a?(NetworkTokenizationCreditCard)
          add_card(post, payment)
        end
      end
def add_payment ( post , payment , options , action = nil ) if payment . is_a? ( String ) _ , _ , recurring_detail_reference = payment . split ( '#' ) post [ :selectedRecurringDetailReference ] = recurring_detail_reference options [ :recurring_contract_type ] ||= 'RECURRING' elsif payment . is_a? ( Check ) add_bank_account ( post , payment , options , action ) else add_mpi_data_for_network_tokenization_card ( post , payment ) if payment . is_a? ( NetworkTokenizationCreditCard ) add_card ( post , payment ) end end
we recommend setting up merchant-specific endpoints.
we recommend setting up merchant - specific endpoints .
post
<not_specific>
payment
<not_specific>
options
<not_specific>
action
<not_specific>