Save description and product_id

This commit is contained in:
PCoder 2018-09-25 02:14:11 +02:00
parent ed7ffb355f
commit 51c5fa98dd

View file

@ -847,8 +847,8 @@ class OrderConfirmationView(DetailView):
# Set order status approved # Set order status approved
order.set_approved() order.set_approved()
order.generic_payment_description = gp_details["description"]
order.generic_payment_id = str(uuid.uuid4()) order.generic_product_id = gp_details["product_id"]
order.save() order.save()
# send emails # send emails
context = { context = {
@ -857,6 +857,7 @@ class OrderConfirmationView(DetailView):
'amount': gp_details['amount'], 'amount': gp_details['amount'],
'description': gp_details['description'], 'description': gp_details['description'],
'recurring': gp_details['recurring'], 'recurring': gp_details['recurring'],
'product_name': gp_details['product_name'],
'order_id': order.id 'order_id': order.id
} }