Attempt fix for local variable 'card_details_dict' referenced before assignment
This commit is contained in:
parent
4962b72d1a
commit
480e38fbc9
1 changed files with 5 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue