summaryrefslogtreecommitdiff
path: root/billing/app/models/customer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'billing/app/models/customer.rb')
-rw-r--r--billing/app/models/customer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/billing/app/models/customer.rb b/billing/app/models/customer.rb
index c7f216c..fa43b96 100644
--- a/billing/app/models/customer.rb
+++ b/billing/app/models/customer.rb
@@ -29,6 +29,7 @@ class Customer < CouchRest::Model::Base
=end
#slow to get Braintree Customer data, so pass it if have already retrieved it
+ # won't really have multiple credit cards on file
def default_credit_card(braintree_data = nil)
return unless has_payment_info?
braintree_data = braintree_data || Braintree::Customer.find(braintree_customer_id)