Skip to content

Commit

Permalink
Add Discover to the list of supported card types for Braintree
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody Fauser committed Jun 20, 2008
1 parent ab45f79 commit 4d5bc8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
@@ -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]
Expand Down
2 changes: 1 addition & 1 deletion lib/active_merchant/billing/gateways/braintree.rb
Expand Up @@ -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'

Expand Down
7 changes: 2 additions & 5 deletions test/unit/gateways/braintree_test.rb
Expand Up @@ -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 }
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4d5bc8f

Please sign in to comment.