diff options
author | Joel Jackson <jackson.joel@gmail.com> | 2017-08-31 21:54:05 -0700 |
---|---|---|
committer | Angel Perez <iAngel.p93@gmail.com> | 2018-12-12 18:48:04 +0100 |
commit | 969b3b9f6e7b948aa5703d29a73d4cff12ee872c (patch) | |
tree | 1ba91e3865403804b634d21123e775bac6719d1e /app/models | |
parent | 30e6bdc75059f95a22bf5d572adbeef50282427a (diff) |
Uses the wallet instead of credit cards for checkout on subscription orders.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/solidus_subscriptions/checkout.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/solidus_subscriptions/checkout.rb b/app/models/solidus_subscriptions/checkout.rb index 565d9db..c6ec7f5 100644 --- a/app/models/solidus_subscriptions/checkout.rb +++ b/app/models/solidus_subscriptions/checkout.rb @@ -114,7 +114,7 @@ module SolidusSubscriptions end def active_card - user.credit_cards.default.last + user.wallet.default_wallet_payment_source end def create_payment |