Store dicts as json in db
This commit is contained in:
parent
213b9a068e
commit
2f98294eab
1 changed files with 3 additions and 3 deletions
|
@ -757,11 +757,11 @@ class OrderConfirmationView(DetailView, FormView):
|
||||||
request=create_incomplete_intent_request(self.request),
|
request=create_incomplete_intent_request(self.request),
|
||||||
payment_intent_id=payment_intent.id,
|
payment_intent_id=payment_intent.id,
|
||||||
stripe_api_cus_id=request.session['customer'],
|
stripe_api_cus_id=request.session['customer'],
|
||||||
card_details_response=card_details_response,
|
card_details_response=json.dumps(card_details_response),
|
||||||
stripe_subscription_id=None,
|
stripe_subscription_id=None,
|
||||||
stripe_charge_id=None,
|
stripe_charge_id=None,
|
||||||
gp_details=request.session["generic_payment_details"],
|
gp_details=json.dumps(request.session["generic_payment_details"]),
|
||||||
billing_address_data=request.session["billing_address_data"]
|
billing_address_data=json.dumps(request.session["billing_address_data"])
|
||||||
)
|
)
|
||||||
logger.debug("IncompletePaymentIntent done")
|
logger.debug("IncompletePaymentIntent done")
|
||||||
return render(request, self.template_name, context)
|
return render(request, self.template_name, context)
|
||||||
|
|
Loading…
Reference in a new issue