lib/active_merchant/billing/gateways/pay_secure.rb in activemerchant-1.26.0 vs lib/active_merchant/billing/gateways/pay_secure.rb in activemerchant-1.27.0
- old
+ new
@@ -1,9 +1,9 @@
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
class PaySecureGateway < Gateway
- URL = 'https://clearance.commsecure.com.au/cgi-bin/PSDirect'
+ self.live_url = self.test_url = 'https://clearance.commsecure.com.au/cgi-bin/PSDirect'
self.money_format = :cents
# Currently Authorization and Capture is not implemented because
# capturing requires the original credit card information
@@ -71,10 +71,10 @@
"#{month}#{year[-2..-1]}"
end
def commit(action, money, parameters)
- response = parse( ssl_post(URL, post_data(action, parameters)) )
+ response = parse( ssl_post(self.live_url, post_data(action, parameters)) )
Response.new(successful?(response), message_from(response), response,
:test => test_response?(response),
:authorization => authorization_from(response)
)