Pass product_id to ProductPaymentForm

This commit is contained in:
PCoder 2018-10-03 22:53:24 +02:00
parent 74ec39498e
commit ec70cd1c83

View file

@ -263,7 +263,8 @@ class PaymentOrderView(FormView):
'amount': float(product.get_actual_price()), 'amount': float(product.get_actual_price()),
'recurring': product.product_is_subscription, 'recurring': product.product_is_subscription,
'description': product.product_description, 'description': product.product_description,
} },
product_id=product.id
), }) ), })
else: else:
context.update({'generic_payment_form': GenericPaymentForm( context.update({'generic_payment_form': GenericPaymentForm(