lib/active_merchant/billing/gateways/netpay.rb in activemerchant-1.108.0 vs lib/active_merchant/billing/gateways/netpay.rb in activemerchant-1.109.0
- old
+ new
@@ -40,11 +40,11 @@
self.supported_countries = ['MX']
self.default_currency = 'MXN'
# The card types supported by the payment gateway
- self.supported_cardtypes = [:visa, :master, :american_express, :diners_club]
+ self.supported_cardtypes = %i[visa master american_express diners_club]
# The homepage URL of the gateway
self.homepage_url = 'http://www.netpay.com.mx'
# The name of the gateway
@@ -53,10 +53,10 @@
CURRENCY_CODES = {
'MXN' => '484'
}
# The header keys that we will provide in the response params hash
- RESPONSE_KEYS = ['ResponseMsg', 'ResponseText', 'ResponseCode', 'TimeIn', 'TimeOut', 'AuthCode', 'OrderId', 'CardTypeName', 'MerchantId', 'IssuerAuthDate']
+ RESPONSE_KEYS = %w[ResponseMsg ResponseText ResponseCode TimeIn TimeOut AuthCode OrderId CardTypeName MerchantId IssuerAuthDate]
def initialize(options = {})
requires!(options, :store_id, :login, :password)
super
end