Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix: country was passed instaed of coutnry code instance

Pacu2b1ed26bb402d
diff --git a/saleor/graphql/payment/mutations.py b/saleor/graphql/payment/mutations.py
index d78da9a4a3..9b2c1e2cf0 100644
--- a/saleor/graphql/payment/mutations.py
+++ b/saleor/graphql/payment/mutations.py
@@ -86,7 +86,7 @@ class CheckoutPaymentCreate(BaseMutation, I18nMixin):
'billing_address_2': billing_address.street_address_2,
'billing_city': billing_address.city,
'billing_postal_code': billing_address.postal_code,
- 'billing_country_code': billing_address.country,
+ 'billing_country_code': billing_address.country.code,
'billing_country_area': billing_address.country_area}
return billing_data