Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Set new address data to payment
Michał Ociepka4f60ef52cf34
diff --git a/saleor/order/views.py b/saleor/order/views.pyindex c32c2897d9..060278c3c1 100644--- a/saleor/order/views.py+++ b/saleor/order/views.py@@ -55,14 +55,10 @@ def start_payment(request, order, variant):defaults = {'total': total.gross,'tax': total.tax, 'currency': total.currency,'delivery': order.get_delivery_total().gross,- '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_address_1': billing.street_address,'billing_city': billing.city,'billing_postcode': billing.postal_code,- 'billing_country_code': billing.country,- 'billing_country_area': billing.country_area}+ 'billing_country_code': billing.country}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 4c96996d9d..51ab21182f 100755--- a/saleor/userprofile/views.py+++ b/saleor/userprofile/views.py@@ -58,6 +58,7 @@ 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):