paymentMethodInitializeTokenization Mutation
Tokenize payment method.
Triggers the following webhook events:
- PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION (sync): The customer requested to tokenize payment method.
Applied directives
@webhookEventsInfo(asyncEvents: [], syncEvents: [PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION])
paymentMethodInitializeTokenization(channel: String!, data: JSON, id: String!, paymentFlowToSupport: TokenizedPaymentFlowEnum!): PaymentMethodInitializeTokenization
Returns
PaymentMethodInitializeTokenization
Show return type
type PaymentMethodInitializeTokenization {
result: PaymentMethodTokenizationResult!
id: String
data: JSON
errors: [PaymentMethodInitializeTokenizationError!]!
}Arguments
channel
channel · String!
Slug of a channel related to tokenization request.
data
data · JSON
The data that will be passed to the payment gateway.
id
id · String!
The identifier of the payment gateway app to initialize payment method tokenization.
paymentFlowToSupport
paymentFlowToSupport · TokenizedPaymentFlowEnum!
The payment flow that the tokenized payment method should support.
Schema: Saleor 3.23.43. Download SDL.