module QuickpayCommon

Constants

MD5_CHECK_FIELDS
RESPONSE_CODES

Public Class Methods

included(base) click to toggle source
# File lib/active_merchant/billing/gateways/quickpay/quickpay_common.rb, line 167
def self.included(base)
  base.default_currency = 'DKK'
  base.money_format = :cents

  base.supported_countries = %w[DE DK ES FI FR FO GB IS NO SE]
  base.supported_cardtypes = %i[dankort forbrugsforeningen visa master
                                american_express diners_club jcb maestro]
  base.homepage_url = 'http://quickpay.net/'
  base.display_name = 'QuickPay'
end

Public Instance Methods

expdate(credit_card) click to toggle source
# File lib/active_merchant/billing/gateways/quickpay/quickpay_common.rb, line 178
def expdate(credit_card)
  year  = format(credit_card.year, :two_digits)
  month = format(credit_card.month, :two_digits)

  "#{year}#{month}"
end