From 51c5fa98ddb8d9b181c769b58db0434797b360bb Mon Sep 17 00:00:00 2001 From: PCoder Date: Tue, 25 Sep 2018 02:14:11 +0200 Subject: [PATCH] Save description and product_id --- datacenterlight/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index 9f5a3309..736d2e63 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -847,8 +847,8 @@ class OrderConfirmationView(DetailView): # Set order status approved order.set_approved() - - order.generic_payment_id = str(uuid.uuid4()) + order.generic_payment_description = gp_details["description"] + order.generic_product_id = gp_details["product_id"] order.save() # send emails context = { @@ -857,6 +857,7 @@ class OrderConfirmationView(DetailView): 'amount': gp_details['amount'], 'description': gp_details['description'], 'recurring': gp_details['recurring'], + 'product_name': gp_details['product_name'], 'order_id': order.id }