lib/active_merchant/billing/gateways/plugnpay.rb in activemerchant-1.108.0 vs lib/active_merchant/billing/gateways/plugnpay.rb in activemerchant-1.109.0

- old
+ new

@@ -1,12 +1,12 @@ module ActiveMerchant module Billing class PlugnpayGateway < Gateway class PlugnpayPostData < PostData # Fields that will be sent even if they are blank - self.required_fields = [:publisher_name, :publisher_password, - :card_amount, :card_name, :card_number, :card_exp, :orderID] + self.required_fields = %i[publisher_name publisher_password + card_amount card_name card_number card_exp orderID] end self.live_url = self.test_url = 'https://pay1.plugnpay.com/payment/pnpremote.cgi' CARD_CODE_MESSAGES = { 'M' => 'Card verification number matched', @@ -86,15 +86,15 @@ void: 'void', refund: 'return', credit: 'newreturn' } - SUCCESS_CODES = ['pending', 'success'] - FAILURE_CODES = ['badcard', 'fraud'] + SUCCESS_CODES = %w[pending success] + FAILURE_CODES = %w[badcard fraud] self.default_currency = 'USD' self.supported_countries = ['US'] - self.supported_cardtypes = [:visa, :master, :american_express, :discover] + self.supported_cardtypes = %i[visa master american_express discover] self.homepage_url = 'http://www.plugnpay.com/' self.display_name = "Plug'n Pay" def initialize(options = {}) requires!(options, :login, :password)