lib/active_merchant/billing/gateways/card_stream.rb in activemerchant-1.26.0 vs lib/active_merchant/billing/gateways/card_stream.rb in activemerchant-1.27.0
- old
+ new
@@ -16,11 +16,11 @@
# * Visa Credit
# * Visa Debit
# * Visa Purchasing
#
class CardStreamGateway < Gateway
- URL = 'https://gateway.cardstream.com/process.ashx'
+ self.live_url = self.test_url = 'https://gateway.cardstream.com/process.ashx'
self.money_format = :cents
self.default_currency = 'GBP'
self.supported_countries = ['GB']
self.supported_cardtypes = [:visa, :master, :american_express, :diners_club, :discover, :jcb, :maestro, :solo, :switch]
@@ -156,10 +156,10 @@
add_pair(post, :CV2, credit_card.verification_value)
end
def commit(action, parameters)
- response = parse( ssl_post(URL, post_data(action, parameters)) )
+ response = parse( ssl_post(self.live_url, post_data(action, parameters)) )
Response.new(response[:response_code] == APPROVED, message_from(response), response,
:test => test?,
:authorization => response[:cross_reference],
:cvv_result => CVV_CODE[ response[:avscv2_response_code].to_s[0, 1] ],