summaryrefslogtreecommitdiff
path: root/billing
diff options
context:
space:
mode:
Diffstat (limited to 'billing')
-rw-r--r--billing/app/models/customer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/billing/app/models/customer.rb b/billing/app/models/customer.rb
index 611b9d1..0fc3751 100644
--- a/billing/app/models/customer.rb
+++ b/billing/app/models/customer.rb
@@ -30,8 +30,8 @@ class Customer < CouchRest::Model::Base
##??
def default_credit_card
return unless has_payment_info?
-
- credit_cards.find { |cc| cc.default? }
+ braintree_data = Braintree::Customer.find(braintree_customer_id)
+ braintree_data.credit_cards.find { |cc| cc.default? }
end