Skip to content

Commit

Permalink
Moneris: Support Diners Club and Discover credit cards as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
Soleone committed Jun 8, 2011
1 parent 2989dbb commit 966ab7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/active_merchant/billing/gateways/moneris.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class MonerisGateway < Gateway
LIVE_URL = 'https://www3.moneris.com/gateway2/servlet/MpgRequest'

self.supported_countries = ['CA']
self.supported_cardtypes = [:visa, :master, :american_express]
self.supported_cardtypes = [:visa, :master, :american_express, :diners_club, :discover]
self.homepage_url = 'http://www.moneris.com/'
self.display_name = 'Moneris'

Expand Down
2 changes: 1 addition & 1 deletion test/unit/gateways/moneris_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_supported_countries
end

def test_supported_card_types
assert_equal [:visa, :master, :american_express], MonerisGateway.supported_cardtypes
assert_equal [:visa, :master, :american_express, :diners_club, :discover], MonerisGateway.supported_cardtypes
end

def test_should_raise_error_if_transaction_param_empty_on_credit_request
Expand Down

0 comments on commit 966ab7d

Please sign in to comment.