lib/active_merchant/billing/gateways/pay_junction.rb in activemerchant-1.108.0 vs lib/active_merchant/billing/gateways/pay_junction.rb in activemerchant-1.109.0
- old
+ new
@@ -105,11 +105,11 @@
self.live_url = 'https://payjunction.com/quick_link'
TEST_LOGIN = 'pj-ql-01'
TEST_PASSWORD = 'pj-ql-01p'
- SUCCESS_CODES = ['00', '85']
+ SUCCESS_CODES = %w[00 85]
SUCCESS_MESSAGE = 'The transaction was approved.'
FAILURE_MESSAGE = 'The transaction was declined.'
DECLINE_CODES = {
@@ -148,11 +148,11 @@
'LE' => 'Could not log you in (problem with dc_logon and/or dc_password).',
'NL' => 'Aborted because of a system error, please try again later. ',
'AB' => 'Aborted because of an upstream system error, please try again later.'
}
- self.supported_cardtypes = [:visa, :master, :american_express, :discover]
+ self.supported_cardtypes = %i[visa master american_express discover]
self.supported_countries = ['US']
self.homepage_url = 'http://www.payjunction.com/'
self.display_name = 'PayJunction'
def initialize(options = {})
@@ -239,10 +239,10 @@
# YYYYMMDD format and can be used to specify when the first charge will be made.
# If omitted the first charge will be immediate.
def recurring(money, payment_source, options = {})
ActiveMerchant.deprecated RECURRING_DEPRECATION_MESSAGE
- requires!(options, [:periodicity, :monthly, :weekly, :daily], :payments)
+ requires!(options, %i[periodicity monthly weekly daily], :payments)
periodic_type =
case options[:periodicity]
when :monthly
'month'