Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add user email to payment data
Marcin Gębala5b77718ba65c
diff --git a/saleor/order/views.py b/saleor/order/views.pyindex ed496ce34e..928725fa62 100644--- a/saleor/order/views.py+++ b/saleor/order/views.py@@ -62,7 +62,9 @@ def start_payment(request, order, variant):'billing_city': billing.city,'billing_postcode': billing.postal_code,'billing_country_code': billing.country,- 'description': _('Order %(order_number)s' % {'order_number': order}),+ 'billing_email': order.get_user_email(),+ 'description': _('Order %(order_number)s' % {+ 'order_number': order}),'billing_country_area': billing.country_area,'customer_ip_address': get_ip(request)}if not variant in [v for v, n in settings.CHECKOUT_PAYMENT_CHOICES]: