Skip to content

Commit

Permalink
Update CardStream URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody Fauser committed Dec 9, 2008
1 parent 6c6fff4 commit dfacc49
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
@@ -1,5 +1,9 @@
= ActiveMerchant CHANGELOG

== Version 1.4.1 (December 9, 2008)

* Update CardStream URL. Note that you will also need to update your login id. [cody]

== Version 1.4.0 (November 27, 2008)

* Return failed authorization when SkipJack purchase fails [Tron, cody]
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -8,7 +8,7 @@ require File.dirname(__FILE__) + '/lib/tasks/cia'
require File.dirname(__FILE__) + '/lib/support/gateway_support'


PKG_VERSION = "1.4.0"
PKG_VERSION = "1.4.1"
PKG_NAME = "activemerchant"
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"

Expand Down
5 changes: 2 additions & 3 deletions lib/active_merchant/billing/gateways/card_stream.rb
Expand Up @@ -18,8 +18,7 @@ module Billing #:nodoc:
# * Visa Purchasing
#
class CardStreamGateway < Gateway
TEST_URL = 'https://www.cardstream.com/merchantsecure/Cardstream/VPDirect.cfm'
LIVE_URL = 'https://www.cardstream.com/merchantsecure/Cardstream/VPDirect.cfm'
URL = 'https://gateway.cardstream.com/process.ashx'

self.money_format = :cents
self.default_currency = 'GBP'
Expand Down Expand Up @@ -163,7 +162,7 @@ def format_issue_number(credit_card)
end

def commit(action, parameters)
response = parse( ssl_post(test? ? TEST_URL : LIVE_URL, post_data(action, parameters)) )
response = parse( ssl_post(URL, post_data(action, parameters)) )

Response.new(response[:response_code] == APPROVED, message_from(response), response,
:test => test?,
Expand Down
2 changes: 1 addition & 1 deletion test/remote/gateways/remote_card_stream_test.rb
Expand Up @@ -75,7 +75,7 @@ def setup
:description => 'Store purchase'
}
end

def test_successful_mastercard_purchase
assert response = @gateway.purchase(100, @mastercard, @mastercard_options)
assert_equal 'APPROVED', response.message
Expand Down

0 comments on commit dfacc49

Please sign in to comment.