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 store(credit_card, options = {})
        requires!(options, :order_id)
        post = init_post(options)
        add_invoice(post, 0, options)
        add_payment(post, credit_card, options)
        add_extra_data(post, credit_card, options)
        add_stored_credentials(post, credit_card, options)
        add_address(post, options)
        options[:recurring_contract_type] ||= 'RECURRING'
        add_recurring_contract(post, options)
        action = options[:tokenize_only] ? 'storeToken' : 'authorise'
        initial_response = commit(action, post, options)
        if initial_response.success? && card_not_stored?(initial_response)
          unsupported_failure_response(initial_response)
        else
          initial_response
        end
      end
def store ( credit_card , options = { } ) requires! ( options , :order_id ) post = init_post ( options ) add_invoice ( post , 0 , options ) add_payment ( post , credit_card , options ) add_extra_data ( post , credit_card , options ) add_stored_credentials ( post , credit_card , options ) add_address ( post , options ) options [ :recurring_contract_type ] ||= 'RECURRING' add_recurring_contract ( post , options ) action = options [ :tokenize_only ] ? 'storeToken' : 'authorise' initial_response = commit ( action , post , options ) if initial_response . success? && card_not_stored? ( initial_response ) unsupported_failure_response ( initial_response ) else initial_response end end
we recommend setting up merchant-specific endpoints.
we recommend setting up merchant - specific endpoints .
credit_card
<not_specific>
options
<not_specific>