Skip to content

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

Add forgotten sku in payment item

Michal Ociepkac66b9ab2688e
diff --git a/payment/views.py b/payment/views.py
index 56d4cb3a06..9e5d05199c 100644
--- a/payment/views.py
+++ b/payment/views.py
@@ -13,7 +13,7 @@ Payment = get_payment_model()
def get_payment_items_from_order(order):
items = [PaymentItem(name=item.product_name, quantity=item.quantity,
- price=item.unit_price_gross, sku=item.product.id,
+ price=item.unit_price_gross, sku=item.product.sku,
currency=settings.SATCHLESS_DEFAULT_CURRENCY)
for item in order.get_items()]
return items