Clear token and card form variables explicitly
This commit is contained in:
parent
16b6ecb38c
commit
24d904288f
1 changed files with 4 additions and 0 deletions
|
@ -356,6 +356,10 @@ class PaymentOrderView(FormView):
|
|||
)
|
||||
if 'billing_address_data' in self.request.session:
|
||||
billing_address_data = self.request.session['billing_address_data']
|
||||
if 'token' in billing_address_data:
|
||||
billing_address_data.pop('token')
|
||||
if 'card' in billing_address_data:
|
||||
billing_address_data.pop('card')
|
||||
else:
|
||||
billing_address_data = {}
|
||||
if self.request.user.is_authenticated():
|
||||
|
|
Loading…
Reference in a new issue