Skip to content
Browse files

Authorize.net: Add support for Diners Club and JCB cards

  • Loading branch information...
1 parent 544a7ad commit fc8e4b10d96e679f13996f21cbaa45f7594c2271 @Soleone Soleone committed Jun 27, 2011
View
2 lib/active_merchant/billing/gateways/authorize_net.rb
@@ -42,7 +42,7 @@ class AuthorizeNetGateway < Gateway
AVS_RESULT_CODE, TRANSACTION_ID, CARD_CODE_RESPONSE_CODE = 5, 6, 38
self.supported_countries = ['US']
- self.supported_cardtypes = [:visa, :master, :american_express, :discover]
+ self.supported_cardtypes = [:visa, :master, :american_express, :discover, :diners_club, :jcb]
self.homepage_url = 'http://www.authorize.net/'
self.display_name = 'Authorize.Net'
View
2 test/unit/gateways/authorize_net_test.rb
@@ -138,7 +138,7 @@ def test_supported_countries
end
def test_supported_card_types
- assert_equal [:visa, :master, :american_express, :discover], AuthorizeNetGateway.supported_cardtypes
+ assert_equal [:visa, :master, :american_express, :discover, :diners_club, :jcb], AuthorizeNetGateway.supported_cardtypes
end
def test_failure_without_response_reason_text

0 comments on commit fc8e4b1

Please sign in to comment.
Something went wrong with that request. Please try again.