Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use proper attribute for SKU
Patryk Zawadzkiafb709549c60
diff --git a/saleor/order/models.py b/saleor/order/models.pyindex 53fba635c3..5dce6e6692 100644--- a/saleor/order/models.py+++ b/saleor/order/models.py@@ -239,7 +239,7 @@ class Payment(BasePayment):def get_purchased_items(self):items = [PurchasedItem(name=item.product_name, quantity=item.quantity,price=item.unit_price_gross,- sku=item.product.sku,+ sku=item.product_sku,currency=settings.DEFAULT_CURRENCY)for item in self.order.get_items()]return items