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_recurring_processing_model(post, options)
        return unless options.dig(:stored_credential, :reason_type) || options[:recurring_processing_model]
        if options.dig(:stored_credential, :reason_type) == 'unscheduled'
          if options.dig(:stored_credential, :initiator) == 'merchant'
            recurring_processing_model = 'UnscheduledCardOnFile'
          else
            recurring_processing_model = 'CardOnFile'
          end
        else
          recurring_processing_model = 'Subscription'
        end
        post[:recurringProcessingModel] = options[:recurring_processing_model] || recurring_processing_model
      end
def add_recurring_processing_model ( post , options ) return unless options . dig ( :stored_credential , :reason_type ) || options [ :recurring_processing_model ] if options . dig ( :stored_credential , :reason_type ) == 'unscheduled' if options . dig ( :stored_credential , :initiator ) == 'merchant' recurring_processing_model = 'UnscheduledCardOnFile' else recurring_processing_model = 'CardOnFile' end else recurring_processing_model = 'Subscription' end post [ :recurringProcessingModel ] = options [ :recurring_processing_model ] || recurring_processing_model end
we recommend setting up merchant-specific endpoints.
we recommend setting up merchant - specific endpoints .
post
<not_specific>
options
<not_specific>