Attempt fix for local variable 'card_details_dict' referenced before assignment

This commit is contained in:
PCoder 2020-12-23 14:19:52 +05:30
parent 4962b72d1a
commit 480e38fbc9

View file

@ -1142,6 +1142,11 @@ def do_create_vm(request, user, stripe_api_cus_id, card_details_response,
custom_user.stripecustomer.stripe_id,
ucd.card_id
)
card_details_dict = {
'last4': ucd.last4,
'brand': ucd.brand,
'card_id': ucd.card_id
}
# Save billing address
billing_address_data.update({