Fix getting card_id and compare
This commit is contained in:
parent
a4a5acd0e7
commit
981e68aa4f
1 changed files with 2 additions and 2 deletions
|
@ -1117,8 +1117,8 @@ def do_create_vm(request, user, stripe_api_cus_id, card_details_response,
|
||||||
user_hosting_key.save()
|
user_hosting_key.save()
|
||||||
logger.debug("User %s key is saved" % custom_user.email)
|
logger.debug("User %s key is saved" % custom_user.email)
|
||||||
|
|
||||||
if 'card_id' in request:
|
card_id = request.get('card_id', None)
|
||||||
card_id = request.get('card_id')
|
if card_id:
|
||||||
logger.debug("card_id %s was in request" % card_id)
|
logger.debug("card_id %s was in request" % card_id)
|
||||||
user_card_detail = UserCardDetail.objects.get(id=card_id)
|
user_card_detail = UserCardDetail.objects.get(id=card_id)
|
||||||
card_details_dict = {
|
card_details_dict = {
|
||||||
|
|
Loading…
Reference in a new issue