lib/active_merchant/billing/gateways/instapay.rb in activemerchant-1.26.0 vs lib/active_merchant/billing/gateways/instapay.rb in activemerchant-1.27.0
- old
+ new
@@ -1,9 +1,9 @@
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
class InstapayGateway < Gateway
- GATEWAY_URL = 'https://trans.instapaygateway.com/cgi-bin/process.cgi'
+ self.live_url = 'https://trans.instapaygateway.com/cgi-bin/process.cgi'
# The countries the gateway supports merchants from as 2 digit ISO country codes
self.supported_countries = ['US']
self.money_format = :dollars
self.default_currency = 'USD'
@@ -136,10 +136,10 @@
end
results
end
def commit(action, parameters)
- data = ssl_post GATEWAY_URL , post_data(action, parameters)
+ data = ssl_post self.live_url, post_data(action, parameters)
response = parse(data)
Response.new(response[:success] , response[:message], response,
:authorization => response[:transaction_id],
:avs_result => { :code => response[:avs_result] },