When user comes back to Shopify page from payment gateway without paying but would like to change some options and go back to buy I would like to cancel the transaction and start a new one because in the payment provider system the status goes to CANCELLED and new transaction needs to be created.
https://shopify.dev/api/payments-apps/graphql/reference/payment/paymentsessionreject
There are only 2 options for statuses https://shopify.dev/api/payments-apps/graphql/reference/common-objects/paymentsessionstatusreasonrejectioncode
Which won’t let you to use same payment method anymore. I would like to put the status to CANCELLED and start a new one. Is that possible somehow?