--- title: paymentSessionModal - Payments Apps API description: >- Raises a modal that will be displayed to the buyer after a checkout is completed. Included data will be used to populate the UI extension in the modal. api_version: unstable api_name: payments-apps type: mutation api_type: graphql source_url: html: >- https://shopify.dev/docs/api/payments-apps/latest/mutations/paymentSessionModal md: >- https://shopify.dev/docs/api/payments-apps/latest/mutations/paymentSessionModal.md --- # payment​Session​Modal mutation Requires `write_payment_sessions` access scope. Raises a modal that will be displayed to the buyer after a checkout is completed. Included data will be used to populate the UI extension in the modal. ## Arguments * action [Modal​Action!](https://shopify.dev/docs/api/payments-apps/unstable/input-objects/ModalAction) required The buyer action and corresponding data that will be made available in the modal at runtime. * expires​At [Date​Time](https://shopify.dev/docs/api/payments-apps/unstable/scalars/DateTime) The date and time the modal will expire, in UTC * id [ID!](https://shopify.dev/docs/api/payments-apps/unstable/scalars/ID) required The payment session ID. *** ## Payment​Session​Modal​Payload returns * payment​Session [Payment​Session](https://shopify.dev/docs/api/payments-apps/unstable/objects/PaymentSession) The updated payment session. * user​Errors [\[Payment​Session​Modal​User​Error!\]!](https://shopify.dev/docs/api/payments-apps/unstable/objects/PaymentSessionModalUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### paymentSessionModal reference