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_bank_account(post, bank_account, options, action)
        bank = {
          bankAccountNumber: bank_account.account_number,
          ownerName: bank_account.name,
          countryCode: options[:billing_address][:country]
        }
        action == 'refundWithData' ? bank[:iban] = bank_account.routing_number : bank[:bankLocationId] = bank_account.routing_number
        requires!(bank, :bankAccountNumber, :ownerName, :countryCode)
        post[:bankAccount] = bank
      end
def add_bank_account ( post , bank_account , options , action ) bank = { bankAccountNumber : bank_account . account_number , ownerName : bank_account . name , countryCode : options [ :billing_address ] [ :country ] } action == 'refundWithData' ? bank [ :iban ] = bank_account . routing_number : bank [ :bankLocationId ] = bank_account . routing_number requires! ( bank , :bankAccountNumber , :ownerName , :countryCode ) post [ :bankAccount ] = bank end
we recommend setting up merchant-specific endpoints.
we recommend setting up merchant - specific endpoints .
post
<not_specific>
bank_account
<not_specific>
options
<not_specific>
action
<not_specific>