lib/active_merchant/billing/gateways/certo_direct.rb in activemerchant-1.26.0 vs lib/active_merchant/billing/gateways/certo_direct.rb in activemerchant-1.27.0
- old
+ new
@@ -1,10 +1,9 @@
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
class CertoDirectGateway < Gateway
- class_attribute :gateway_url
- self.gateway_url = "https://secure.certodirect.com/gateway/process/v2"
+ self.live_url = self.test_url = "https://secure.certodirect.com/gateway/process/v2"
self.supported_countries = [
"BE", "BG", "CZ", "DK", "DE", "EE", "IE", "EL", "ES", "FR",
"IT", "CY", "LV", "LT", "LU", "HU", "MT", "NL", "AT", "PL",
"PT", "RO", "SI", "SK", "FI", "SE", "GB"
@@ -109,10 +108,10 @@
private
def commit(request_xml)
begin
- response = Hash.from_xml(ssl_post(gateway_url, request_xml, headers))
+ response = Hash.from_xml(ssl_post(self.live_url, request_xml, headers))
Response.new(success?(response),
message(response),
response,
:test => test?,
:authorization => authorization(response))