lib/active_merchant/billing/gateways/paymentez.rb in activemerchant-1.124.0 vs lib/active_merchant/billing/gateways/paymentez.rb in activemerchant-1.125.0
- old
+ new
@@ -7,11 +7,11 @@
self.test_url = 'https://ccapi-stg.paymentez.com/v2/'
self.live_url = 'https://ccapi.paymentez.com/v2/'
self.supported_countries = %w[MX EC CO BR CL PE]
self.default_currency = 'USD'
- self.supported_cardtypes = %i[visa master american_express diners_club elo alia olimpica]
+ self.supported_cardtypes = %i[visa master american_express diners_club elo alia olimpica discover maestro sodexo carnet unionpay jcb]
self.homepage_url = 'https://secure.paymentez.com/'
self.display_name = 'Paymentez'
STANDARD_ERROR_CODE_MAPPING = {
@@ -37,10 +37,17 @@
CARD_MAPPING = {
'visa' => 'vi',
'master' => 'mc',
'american_express' => 'ax',
'diners_club' => 'di',
- 'elo' => 'el'
+ 'elo' => 'el',
+ 'discover' => 'dc',
+ 'maestro' => 'ms',
+ 'sodexo' => 'sx',
+ 'olimpica' => 'ol',
+ 'carnet' => 'ct',
+ 'unionpay' => 'up',
+ 'jcb' => 'jc'
}.freeze
def initialize(options = {})
requires!(options, :application_code, :app_key)
super