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

I have a Shopify store requiring users to log in for checkout. I’m using the Storefront API to authenticate and passing the token and email to the cart, but users are redirected to the login screen at checkout instead of completing their purchase. #236

Closed
fahadr3hman opened this issue Nov 7, 2024 · 5 comments
Labels

Comments

@fahadr3hman
Copy link

What area is the issue related to?

Checkout Sheet Kit

What version of Checkout Sheet Kit are you using?

3.1.2

Reproducible sample code

return Storefront.CartInput.create( lines: Input(orNull: items.map({ Storefront.CartLineInput.create(merchandiseId: $0) }) ), buyerIdentity: Input.value(Storefront.CartBuyerIdentityInput.create(email: Input.value(email), customerAccessToken: Input.value(AppDefaults.instance.token)) ))

Steps to Reproduce

*A shopify store which require's users to log in before proceeding to checkout.
*Authenticate customer accounts via the Storefront API.
*Add items to the shopping cart.
*Proceed to checkout.

Expected Behavior

*It should just show the checkout screen.

Actual Behavior

*It's showing me the login screen.

Screenshots/Videos/Log output

Simulator.Screen.Recording.-.iPhone.16.Pro.Max.-.2024-11-07.at.14.18.06.mp4

Storefront domain

https://mandauefoam.ph/

@kristinhung
Copy link

kristinhung commented Nov 12, 2024

Hi @fahadr3hman , thanks for the feedback. We are working on this feature and will let you know once it's available.

@fahadr3hman
Copy link
Author

Thanks for the update.

@ryusei1026
Copy link

Hi @kristinhung , I have same problem.
I use the CheckoutURL obtained in the following way

cart(id: $cartID) {
	id
	checkoutUrl
}

Does this include the one obtained by this method?

@kiftio
Copy link
Contributor

kiftio commented Dec 20, 2024

A feature shipped in editions that allows carrying through authenticated state from a native app to checkout

We've added some documentation here for using this feature with Customer Account API. But if you're already passing a customerAccessToken into cart buyer identity you may already be good to go. Please reopen this issue if you see any issues

@kiftio kiftio closed this as completed Dec 20, 2024
@fahadr3hman
Copy link
Author

I have tested it and it looks fine. Will open issue if i see some issue again.

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

No branches or pull requests

4 participants