lib/active_merchant/billing/gateways/payway.rb in activemerchant-1.103.0 vs lib/active_merchant/billing/gateways/payway.rb in activemerchant-1.104.0
- old
+ new
@@ -1,12 +1,12 @@
module ActiveMerchant
module Billing
class PaywayGateway < Gateway
self.live_url = self.test_url = 'https://ccapi.client.qvalent.com/payway/ccapi'
- self.supported_countries = [ 'AU' ]
- self.supported_cardtypes = [ :visa, :master, :diners_club, :american_express, :bankcard ]
+ self.supported_countries = ['AU']
+ self.supported_cardtypes = [:visa, :master, :diners_club, :american_express, :bankcard]
self.display_name = 'Pay Way'
self.homepage_url = 'http://www.payway.com.au'
self.default_currency = 'AUD'
self.money_format = :cents
@@ -196,9 +196,10 @@
:test => (@options[:merchant].to_s == 'TEST'),
:authorization => post[:order_number]
)
rescue ActiveMerchant::ResponseError => e
raise unless e.response.code == '403'
+
return Response.new(false, 'Invalid credentials', {}, :test => test?)
rescue ActiveMerchant::ClientCertificateError
return Response.new(false, 'Invalid certificate', {}, :test => test?)
end
end