lib/active_merchant/billing/gateways/net_registry.rb in activemerchant-1.26.0 vs lib/active_merchant/billing/gateways/net_registry.rb in activemerchant-1.27.0
- old
+ new
@@ -20,11 +20,11 @@
#
# In addition to the standard ActiveMerchant functionality, the
# response will contain a 'receipt' parameter
# (response.params['receipt']) if a receipt was issued by the gateway.
class NetRegistryGateway < Gateway
- URL = 'https://4tknox.au.com/cgi-bin/themerchant.au.com/ecom/external2.pl'
+ self.live_url = self.test_url = 'https://4tknox.au.com/cgi-bin/themerchant.au.com/ecom/external2.pl'
FILTERED_PARAMS = [ 'card_no', 'card_expiry', 'receipt_array' ]
self.supported_countries = ['AU']
@@ -135,10 +135,10 @@
#
# Login and password are added automatically, and the comment is
# omitted if nil.
def commit(action, params)
# get gateway response
- response = parse( ssl_post(URL, post_data(action, params)) )
+ response = parse( ssl_post(self.live_url, post_data(action, params)) )
Response.new(response['status'] == 'approved', message_from(response), response,
:authorization => authorization_from(response, action)
)
end