Permalink
Browse files

Add Discover to the list of supported card types for Braintree

  • Loading branch information...
1 parent ab45f79 commit 4d5bc8f895785cb9d2a8afe595a89820bb30848f Cody Fauser committed Jun 20, 2008
Showing with 4 additions and 6 deletions.
  1. +1 −0 CHANGELOG
  2. +1 −1 lib/active_merchant/billing/gateways/braintree.rb
  3. +2 −5 test/unit/gateways/braintree_test.rb
View
@@ -1,5 +1,6 @@
= ActiveMerchant CHANGELOG
+* Add Discover to the list of supported card types for Braintree [cody]
* Add support for Modern Payments gateway [Jeremy Nicoll, cody]
* Add support for EFT/ACH and Interac Online to the BeanstreamGateway [cody]
* Document the SageGateway [cody]
@@ -6,7 +6,7 @@ class BraintreeGateway < Gateway
URL = 'https://secure.braintreepaymentgateway.com/api/transact.php'
self.supported_countries = ['US']
- self.supported_cardtypes = [:visa, :master, :american_express]
+ self.supported_cardtypes = [:visa, :master, :american_express, :discover]
self.homepage_url = 'http://www.braintreepaymentsolutions.com'
self.display_name = 'Braintree'
@@ -8,10 +8,7 @@ def setup
:password => 'PASSWORD'
)
- @credit_card = credit_card('4242424242424242',
- :type => 'visa'
- )
-
+ @credit_card = credit_card
@amount = 100
@options = { :billing_address => address }
@@ -50,7 +47,7 @@ def test_supported_countries
end
def test_supported_card_types
- assert_equal [:visa, :master, :american_express], BraintreeGateway.supported_cardtypes
+ assert_equal [:visa, :master, :american_express, :discover], BraintreeGateway.supported_cardtypes
end
def test_adding_store_adds_vault_id_flag

0 comments on commit 4d5bc8f

Please sign in to comment.