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
Labels
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/
The text was updated successfully, but these errors were encountered: