Skip to content

applePayPaymentValidate

Mutationin Payment

Validate an Apple Pay session and retrieve the merchant session Used for Apple Pay payment processing integration

Arguments

ArgumentTypeDescription
paymentContextApplePayPaymentContextInput!

Returns

ApplePayPaymentValidateResponse!

FieldTypeDescription
merchantSessionStringOpaque merchant session returned by Apple, to hand to the Apple Pay SDK
paymentErrors[ApplePayPaymentValidateError!]Error details if validation failed

Example

mutation {
applePayPaymentValidate(paymentContext: {
merchantIdentifier: "merchant.com.mystore"
domainName: "mystore.com"
displayName: "My Store Purchase"
}) {
merchantSession
paymentErrors {
... on ValidationError {
message
}
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaStub: answers Not implemented
@evolve-framework/sfccStub: answers Not implemented