Skip to main content
Anchor to UserErrorsShopPayPaymentRequestSessionUserErrors

UserErrorsShopPayPaymentRequestSessionUserErrors

object

Error codes for failed Shop Pay payment request session mutations.

•[String!]

The path to the input field that caused the error.

•String!
non-null

The error message.


Was this section helpful?

•mutation

Creates a Shop Pay payment request session for processing payments. The session includes a checkout URL where customers complete their purchase and a token for subsequent operations like submitting the payment.

The sourceIdentifier must be unique across all orders to ensure accurate reconciliation.

For a complete integration guide including the JavaScript SDK setup and checkout flow, refer to the Shop Component API documentation. For implementation steps, see the development journey guide. For common error scenarios, see the troubleshooting guide.

Arguments

•String!
required

A unique identifier for the payment request session.

•ShopPayPaymentRequestInput!
required

A payment request object.


•mutation

Finalizes a Shop Pay payment request session. Call this mutation after creating a session with shopPayPaymentRequestSessionCreate.

The idempotencyKey argument ensures the payment transaction occurs only once, preventing duplicate charges. On success, returns a ShopPayPaymentRequestReceipt with the processing status and a receipt token.

For a complete integration guide including the JavaScript SDK setup and checkout flow, refer to the Shop Component API documentation. For implementation steps, see the development journey guide. For common error scenarios, see the troubleshooting guide.

Arguments

•String!
required

A token representing a payment session request.

•ShopPayPaymentRequestInput!
required

The final payment request object.

•String!
required

The idempotency key is used to guarantee an idempotent result.

•String

The order name to be used for the order created from the payment request.



Was this section helpful?


Was this section helpful?