Skip to content

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

Add payment field paymentMethodType to API

Maciej Korycinski20bd985306e3
diff --git a/saleor/graphql/payment/types.py b/saleor/graphql/payment/types.py
index 8639cbcac9..df02d72586 100644
--- a/saleor/graphql/payment/types.py
+++ b/saleor/graphql/payment/types.py
@@ -104,6 +104,7 @@ class Payment(CountableDjangoObjectType):
"checkout",
"order",
"customer_ip_address",
+ "payment_method_type",
]
@staticmethod
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 6f626e576d..dad8d6eedd 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -3676,6 +3676,7 @@ type Payment implements Node {
token: String!
checkout: Checkout
order: Order
+ paymentMethodType: String!
customerIpAddress: String
chargeStatus: PaymentChargeStatusEnum!
actions: [OrderAction]!