From 02c8f245bdd12deee4746709b09908d48d558064 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Mon, 14 Sep 2020 00:05:41 -0500 Subject: [PATCH] bug fix --- src/api/index.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/api/index.py b/src/api/index.py index c58b56c..3d70f5c 100755 --- a/src/api/index.py +++ b/src/api/index.py @@ -321,6 +321,11 @@ def _payme(id) : _args['metadata'] = {"payment":plan['nickname'],"product":id} _args['plan'] = plan + # + # @TODO: If we have a card we must add it to the cards on file + # + if card : + user.card.add(card=card) if user.plan.info() : r = mystore.plan.upgrade(plan['id'],info['email'])