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_card(post, credit_card)
        card = {
          expiryMonth: credit_card.month,
          expiryYear: credit_card.year,
          holderName: credit_card.name,
          number: credit_card.number,
          cvc: credit_card.verification_value
        }
        card.delete_if { |_k, v| v.blank? }
        card[:holderName] ||= 'Not Provided'
        requires!(card, :expiryMonth, :expiryYear, :holderName, :number)
        post[:card] = card
      end
def add_card ( post , credit_card ) card = { expiryMonth : credit_card . month , expiryYear : credit_card . year , holderName : credit_card . name , number : credit_card . number , cvc : credit_card . verification_value } card . delete_if { | _k , v | v . blank? } card [ :holderName ] ||= 'Not Provided' requires! ( card , :expiryMonth , :expiryYear , :holderName , :number ) post [ :card ] = card end
we recommend setting up merchant-specific endpoints.
we recommend setting up merchant - specific endpoints .
post
<not_specific>
credit_card
<not_specific>