Skip to content
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

Get checkout (id) from checkout link #1181

Open
lorenzOliveto opened this issue Jun 22, 2022 · 7 comments
Open

Get checkout (id) from checkout link #1181

lorenzOliveto opened this issue Jun 22, 2022 · 7 comments

Comments

@lorenzOliveto
Copy link

lorenzOliveto commented Jun 22, 2022

I'm trying to implement the selling plans on my app, I've moved all the logic that were previously added to the checkout to the cart with the cartCreate mutation.
The problem that I'm facing is that the cart doesn't returns a checkout (id) so I have only the checkout URL, and I don't know if the user has completed the checkout and if the app should empty the cart once the web view is closed.

How can I manage this situation?

#1181 (comment)

@harishvitta
Copy link

I am also in the same situation. I trying to implement Subscriptions.

  • I don't see an option to add the shipping address to the cart object.
  • Does Cart flows allow to finish checkout using Apple Pay in the native application instead of web checkout.

@kayluhb
Copy link

kayluhb commented Jan 3, 2023

@lorenzOliveto were you able to get a solution to this?

@jubada92
Copy link

jubada92 commented Jan 8, 2023

I´m as well interested in a solution for this

@lorenzOliveto
Copy link
Author

@lorenzOliveto were you able to get a solution to this?

Unfortunately not, no solution and no response.

@jackfowler
Copy link

+1 I'm in this exact situation too

@jackfowler
Copy link

jackfowler commented Jan 31, 2023

I just got around it by querying the cart using the Storefront GraphQL API. If the checkout has been completed the cart returns null, but if it hasn't been completed it will return the cart object. Not as clean as getting the completedAt value off the checkout, but it works. Hope that helps.

{
  cart(id: "${id}") {
    updatedAt
  }
}

@altaakh
Copy link

altaakh commented Mar 21, 2023

Same here If I used Cart's cartCreate mutation it becomes unable to use Checkout object and its mutation queries.
Did you ask this issue on forum?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants