lib/active_merchant/billing/gateways/inspire.rb in activemerchant-1.26.0 vs lib/active_merchant/billing/gateways/inspire.rb in activemerchant-1.27.0
- old
+ new
@@ -1,10 +1,10 @@
require File.join(File.dirname(__FILE__), '..', 'check.rb')
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
class InspireGateway < Gateway
- URL = 'https://secure.inspiregateway.net/api/transact.php'
+ self.live_url = self.test_url = 'https://secure.inspiregateway.net/api/transact.php'
self.supported_countries = ['US']
self.supported_cardtypes = [:visa, :master, :american_express]
self.homepage_url = 'http://www.inspiregateway.com'
self.display_name = 'Inspire Commerce'
@@ -165,10 +165,10 @@
end
def commit(action, money, parameters)
parameters[:amount] = amount(money) if money
- response = parse( ssl_post(URL, post_data(action,parameters)) )
+ response = parse( ssl_post(self.live_url, post_data(action,parameters)) )
Response.new(response["response"] == "1", message_from(response), response,
:authorization => response["transactionid"],
:test => test?,
:cvv_result => response["cvvresponse"],