diff options
author | jessib <jessib@leap.se> | 2013-04-23 11:47:09 -0700 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-07-17 10:47:13 +0200 |
commit | c2330394daf004974656d8240ca6c83567401595 (patch) | |
tree | bbf9dace2344efc68c3a6b97921309caeed922e4 /billing/app/models/customer.rb | |
parent | 416ae5da6b87c78fcf49592885a916e9ce4f0904 (diff) |
Basic functionality to edit credit card on file.
Diffstat (limited to 'billing/app/models/customer.rb')
-rw-r--r-- | billing/app/models/customer.rb | 1 |
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) |