Hi
I have redirect the customer on offsite payment portal but conforming the payment how to redierct customer back. I have not Order ID to confirm the order status.
How to get order ID on offsite payment portal?
Thanks
Main issue: In an offsite payment flow for a Shopify app, developers need the Order ID to confirm payment and redirect customers back, but the payment session payload provides only a request_id, not the Order ID.
What’s proposed: Pass a unique identifier (ideally the Order ID) to the offsite portal via the redirect URL and include it on the return URL to map the payment back to the correct order. Then use that identifier to update order status upon return.
Blocking problem: The original poster notes Shopify’s payment session only includes a request_id, so they cannot obtain the Order ID from session details. They ask how to derive or fetch the Order ID from that request.
Additional input: Another developer suggests a GraphQL call to obtain the redirect URL after payment but lacks the required mutation/permissions and asks which scopes are needed. Docs cited: offsite payment request reference and payment processing.
Status: Unresolved. Open questions: mapping request_id to Order ID; required GraphQL mutation and permissions.
Hi
I have redirect the customer on offsite payment portal but conforming the payment how to redierct customer back. I have not Order ID to confirm the order status.
How to get order ID on offsite payment portal?
Thanks
Hi Anilket,
Thank you for reaching out with your question about integrating an offsite payment portal and retrieving the order ID.
To ensure a seamless redirection back to your Shopify store after payment confirmation on the offsite portal, you typically need to pass information back and forth between your store and the payment portal. Here’s how you can approach it:
Order ID Generation:
Passing Order Information:
Handling Redirect Back to Shopify:
Updating Order Status:
If you need further assistance with implementing this process or have specific technical questions, please let me know. I’m here to help!
Hi @polo_msweb
Thanks for reply.
I have checked the solution you provided. But issue is that when shopify send payment session details it send only request ID not the Order ID. So how I will get the order ID from the payment session details that shopify send to the payment app.
Kindly guide me how to get the Order ID from Shopify payment session details?
I have followed this doc:
https://shopify.dev/docs/apps/build/payments/request-reference#offsite-payment
Thanks
I have the same problem as you, from what I’ve been investigating, you have to make a call to graphql to get the redirect url, after making the payment, in my case I don’t have said mutation, I don’t have the permissions apparently, but I don’t know what they are either, if you can help me with this I would appreciate it, here is the link to the above commented
https://shopify.dev/docs/apps/build/payments/processing