|
|
@ -321,6 +321,11 @@ def _payme(id) :
|
|
|
|
|
|
|
|
|
|
|
|
_args['metadata'] = {"payment":plan['nickname'],"product":id}
|
|
|
|
_args['metadata'] = {"payment":plan['nickname'],"product":id}
|
|
|
|
_args['plan'] = plan
|
|
|
|
_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() :
|
|
|
|
if user.plan.info() :
|
|
|
|
|
|
|
|
|
|
|
|
r = mystore.plan.upgrade(plan['id'],info['email'])
|
|
|
|
r = mystore.plan.upgrade(plan['id'],info['email'])
|
|
|
|