Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Revert "Set new address data to payment"
Marcin Gębala0afa31c6154a
diff --git a/saleor/order/views.py b/saleor/order/views.pyindex aa4d1d02d9..0ef2873e27 100644--- a/saleor/order/views.py+++ b/saleor/order/views.py@@ -55,11 +55,15 @@ def start_payment(request, order, variant):defaults = {'total': total.gross,'tax': total.tax, 'currency': total.currency,'delivery': order.get_delivery_total().gross,- 'billing_address_1': billing.street_address,+ 'billing_first_name': billing.first_name,+ 'billing_last_name': billing.last_name,+ 'billing_address_1': billing.street_address_1,+ 'billing_address_2': billing.street_address_2,'billing_city': billing.city,'billing_postcode': billing.postal_code,'billing_country_code': billing.country,- 'description': _('Order %(order_number)s' % {'order_number': order})}+ 'description': _('Order %(order_number)s' % {'order_number': order}),+ 'billing_country_area': billing.country_area}if not variant in [v for v, n in settings.CHECKOUT_PAYMENT_CHOICES]:raise Http404('%r is not a valid payment variant' % (variant,))with transaction.atomic():diff --git a/saleor/userprofile/views.py b/saleor/userprofile/views.pyindex 51ab21182f..4c96996d9d 100755--- a/saleor/userprofile/views.py+++ b/saleor/userprofile/views.py@@ -58,7 +58,6 @@ def address_edit(request, slug, pk):return validate_address_and_render(request, address_form, address_book_form, success_message=message)-@login_requireddef address_create(request):