Shop Pay Payment Request Session
Represents a Shop Pay payment request session.
Anchor to FieldsFields
- businessEntityId (String)
- checkoutUrl (URL!)
- sourceIdentifier (String!)
- token (String!)
- paymentRequest (ShopPayPaymentRequest): deprecated
- Anchor to businessEntityIdbusiness•String
Entity Id The ID of the business entity selected for this session, in the form accepted by
and. Returns null if no entity was selected or the selected entity can't be found for this shop. When no entity is selected, the shop's primary business entity is used. This ID can't be resolved through the Storefront API's node query.- Anchor to checkoutUrlcheckout•URL!
Url non-null The checkout URL of the Shop Pay payment request session.
- Anchor to sourceIdentifiersource•String!
Identifier non-null The source identifier of the Shop Pay payment request session.
- Anchor to tokentoken•String!non-null
The token of the Shop Pay payment request session.
- Anchor to paymentRequestpayment•Shop
Request Pay Payment Request Deprecated Show fields
Anchor to MutationsMutations
- shopPayPaymentRequestSessionBusinessEntityUpdate (ShopPayPaymentRequestSessionBusinessEntityUpdatePayload)
- shopPayPaymentRequestSessionCreate (ShopPayPaymentRequestSessionCreatePayload)
- Anchor to shopPayPaymentRequestSessionBusinessEntityUpdateshop•mutation
Pay Payment Request Session Business Entity Update Updates the business entity associated with an ongoing Shop Pay payment request session. You can change the business entity before submitting payment, or after the latest payment attempt has failed.
Show payload
- Anchor to businessEntityIdbusiness•String!
Entity Id required The full global ID of the business entity to process this payment through, such as
, returned by the Admin APIquery. To use the shop's primary business entity, provide its global ID.- Anchor to tokentoken•String!required
A payment request session token.
Arguments
- •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
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.
Show payload
- Anchor to businessEntityIdbusiness•String
Entity Id The full global ID of the business entity to process this payment through, such as
, returned by the Admin APIquery. Omit it to use the shop's primary business entity.- Anchor to paymentRequestpayment•Shop
Request Pay Payment Request Input Deprecated Show input fields
- Anchor to sourceIdentifiersource•String!
Identifier required A unique identifier for the payment request session.
Arguments