Skip to content

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

Deprecate client token field

Jakub Draganek346bc4628131
diff --git a/saleor/graphql/payment/schema.py b/saleor/graphql/payment/schema.py
index b518e4fa58..0fde9dd4cb 100644
--- a/saleor/graphql/payment/schema.py
+++ b/saleor/graphql/payment/schema.py
@@ -19,6 +19,10 @@ class PaymentQueries(graphene.ObjectType):
payment_client_token = graphene.Field(
graphene.String,
gateway=graphene.String(required=True, description="A payment gateway."),
+ deprecation_reason=(
+ "DEPRECATED: Will be removed in Saleor 2.10, "
+ "use payment gateway config instead in availablePaymentGateways."
+ ),
)
@permission_required("order.manage_orders")
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index dc2932fc23..3606fe688e 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -3323,7 +3323,7 @@ type Query {
reportProductSales(period: ReportingPeriod!, before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection
payment(id: ID!): Payment
payments(before: String, after: String, first: Int, last: Int): PaymentCountableConnection
- paymentClientToken(gateway: String!): String
+ paymentClientToken(gateway: String!): String @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, use payment gateway config instead in availablePaymentGateways.")
page(id: ID, slug: String): Page
pages(query: String, filter: PageFilterInput, before: String, after: String, first: Int, last: Int): PageCountableConnection
homepageEvents(before: String, after: String, first: Int, last: Int): OrderEventCountableConnection