Skip to content

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

Fix bug where payment is not filtered from active ones when creating payment

Unknown7388ba35ea1f
diff --git a/saleor/payment/utils.py b/saleor/payment/utils.py
index 7a4d39eeaf..038fd6953e 100644
--- a/saleor/payment/utils.py
+++ b/saleor/payment/utils.py
@@ -132,6 +132,7 @@ def create_payment(
extra_data = {}
data = {
+ 'is_active': True,
'customer_ip_address': customer_ip_address,
'extra_data': extra_data,
'token': payment_token}