Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Make payment_token as required
jxltom0f45ec6e2c9d
diff --git a/saleor/graphql/payment/mutations.py b/saleor/graphql/payment/mutations.pyindex 55821d6e53..839245bebe 100644--- a/saleor/graphql/payment/mutations.py+++ b/saleor/graphql/payment/mutations.py@@ -118,6 +118,7 @@ class PaymentAuthorize(BaseMutation):class Arguments:payment_id = graphene.ID(required=True, description='Payment ID')payment_token = graphene.String(+ required=True,description='One-time-use reference to payment information')class Meta:@@ -175,6 +176,7 @@ class PaymentCharge(BaseMutation):class Arguments:payment_id = graphene.ID(required=True, description='Payment ID')payment_token = graphene.String(+ required=True,description='One-time-use reference to payment information')amount = Decimal(description='Transaction amount')diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 91ff4ad6d7..6c5fc8064e 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -857,9 +857,9 @@ type Mutations {productVariantUpdate(id: ID!, input: ProductVariantInput!): ProductVariantUpdatevariantImageAssign(imageId: ID!, variantId: ID!): VariantImageAssignvariantImageUnassign(imageId: ID!, variantId: ID!): VariantImageUnassign- paymentAuthorize(paymentId: ID!, paymentToken: String): PaymentAuthorize+ paymentAuthorize(paymentId: ID!, paymentToken: String!): PaymentAuthorizepaymentCapture(amount: Decimal, paymentId: ID!): PaymentCapture- paymentCharge(amount: Decimal, paymentId: ID!, paymentToken: String): PaymentCharge+ paymentCharge(amount: Decimal, paymentId: ID!, paymentToken: String!): PaymentChargepaymentRefund(amount: Decimal, paymentId: ID!): PaymentRefundpaymentVoid(paymentId: ID!): PaymentVoidpageCreate(input: PageInput!): PageCreate