-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
completedAt: null, order: null on checkout object after a successful checkout flow #917
Comments
It's still not working. Could you please check the request id? |
A client's e-commerce site went down completely due to a very similar issue. No updates to the code. orderStatusUrl was no longer populating. |
@NikoD-93 Did you solve the issue? |
You aren't alone my friend! Store was working as intended and now for some reason this value isn't getting updated after a customer completes the checkout process. I opened a ticket and after some back and forth they told me they identified and fixed the problem but still seems to not work. Will report back here if I find out more! |
I'm also having this issue. Do you guys have any ideas for a workaround? This seems like this taking a long time to be fixed! |
Sorry for the late reply. Yep, still having the problem. I'm thinking the
source is the storefront api itself. Making the check without the sdk still
yielded null for me.
Fairly frustrating. I'm currently using an alternative, much less than
ideal check.
Seems like it's quite a few of us that are running into this.
…On Fri, Oct 14, 2022, 9:41 AM mud1 ***@***.***> wrote:
@NikoD-93 <https://github.com/NikoD-93> Did you solve the issue?
I did a workaround to get some property via query string, but it's not
ideal.
Had to implement some additional checks in the checkout flow after the
successful order.
I still think it's a bug in the Shopify Buy SDK and/or the Storefront API
/ other Shopify API.
They updated their codebase and now it's not working anymore.
—
Reply to this email directly, view it on GitHub
<#917 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN53WOK74FAC6RJ42XDGPP3WDFWJJANCNFSM6AAAAAAQ7N3UHY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
What was the alternative solution that you decided to go with? I'm afraid we may have to find another solution as well for the time being If you don't mind sharing! @NikoD-93 :) |
I am having the same problem here. I would really appreciate it if anyone can share the solution. |
+1 |
+1 |
On the order status page we should be able to use the additional scripts field to add an order completed cookie and then read this cookie in the app to determine when to clear out the old checkout. It's not an ideal fix but it should help until this gets properly fixed. |
Yes, it seems that this is affecting old API versions. People's shops are breaking with zero code changes. Not good! |
It's most likely an issue with the Storefront API not the client SDK. However, I opened the ticket here for them to notice. After all, the problem affects the client SDK, so in turn it affects the custom apps as well. In the meantime what I did if anyone is interested:
This way I could grab the data I needed for my custom checkout page from the query params. // WORKAROUND: Shopify Buy SDK has a bug right now (2022-10-12) and does not set completedAt. Hope this helps someone. |
Thank you so much @mud1 , it worked and helped me a lot! |
This is a big issue for me as well. I'm using this library https://github.com/Shopify/buy-button-js (as linked into remote issue via GitHub). I don't have a custom checkout page so I'm not sure if I could use this workaround. Could this be permission issue + failed documentation? I have unauthenticated_write for checkouts but maybe I need to add read, even though I understood it to be implicitly allowed with write ? |
The storefront API started returning the correct values again for me sometime between Wednesday and now. |
Hi all!
Bug details
Describe the bug
I create a checkout object with the Shopify Buy SDK client, that has a checkoutId.
The checkoutId is saved to localStorage so it can be accessed later.
When the user finishes the checkout flow (via client.webUrl), my custom script written in the Shopify Admin (Settings -> Checkout -> Additional scripts) redirects back the customer to my site's "successful checkout" page.
This page gets the checkout object again, with the updated data, completedAt with the date, order: object with order details.
It stopped working.
Now, the Shopify Buy SDK client returns back an outdated checkout object for the same checkoutId!
It worked before perfectly fine.
To Reproduce
Steps to reproduce the behaviour:
Network details
x-request-id: c38e0d5f-c0a6-4a57-bab5-d441b74f63b9
x-shopify-api-version: 2022-07
x-sdk-version: 2.16.1
Expected behavior
The checkout object that is returned is updated with the completedAt property and order (and possibly other) property.
Should work as before.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: