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_merchant_data(post, options)
        post[:additionalData][:subMerchantID] = options[:sub_merchant_id] if options[:sub_merchant_id]
        post[:additionalData][:subMerchantName] = options[:sub_merchant_name] if options[:sub_merchant_name]
        post[:additionalData][:subMerchantStreet] = options[:sub_merchant_street] if options[:sub_merchant_street]
        post[:additionalData][:subMerchantCity] = options[:sub_merchant_city] if options[:sub_merchant_city]
        post[:additionalData][:subMerchantState] = options[:sub_merchant_state] if options[:sub_merchant_state]
        post[:additionalData][:subMerchantPostalCode] = options[:sub_merchant_postal_code] if options[:sub_merchant_postal_code]
        post[:additionalData][:subMerchantCountry] = options[:sub_merchant_country] if options[:sub_merchant_country]
        post[:additionalData][:subMerchantTaxId] = options[:sub_merchant_tax_id] if options[:sub_merchant_tax_id]
        post[:additionalData][:subMerchantMCC] = options[:sub_merchant_mcc] if options[:sub_merchant_mcc]
        post[:additionalData] = post[:additionalData].merge(options[:sub_merchant_data]) if options[:sub_merchant_data]
      end
def add_merchant_data ( post , options ) post [ :additionalData ] [ :subMerchantID ] = options [ :sub_merchant_id ] if options [ :sub_merchant_id ] post [ :additionalData ] [ :subMerchantName ] = options [ :sub_merchant_name ] if options [ :sub_merchant_name ] post [ :additionalData ] [ :subMerchantStreet ] = options [ :sub_merchant_street ] if options [ :sub_merchant_street ] post [ :additionalData ] [ :subMerchantCity ] = options [ :sub_merchant_city ] if options [ :sub_merchant_city ] post [ :additionalData ] [ :subMerchantState ] = options [ :sub_merchant_state ] if options [ :sub_merchant_state ] post [ :additionalData ] [ :subMerchantPostalCode ] = options [ :sub_merchant_postal_code ] if options [ :sub_merchant_postal_code ] post [ :additionalData ] [ :subMerchantCountry ] = options [ :sub_merchant_country ] if options [ :sub_merchant_country ] post [ :additionalData ] [ :subMerchantTaxId ] = options [ :sub_merchant_tax_id ] if options [ :sub_merchant_tax_id ] post [ :additionalData ] [ :subMerchantMCC ] = options [ :sub_merchant_mcc ] if options [ :sub_merchant_mcc ] post [ :additionalData ] = post [ :additionalData ] . merge ( options [ :sub_merchant_data ] ) if options [ :sub_merchant_data ] end
we recommend setting up merchant-specific endpoints.
we recommend setting up merchant - specific endpoints .
post
<not_specific>
options
<not_specific>