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

Feedback for “Embedded Checkout” | How to embed checkouts on not-logged-in customers buy experiences ? #1865

Open
daguitosama opened this issue Apr 4, 2023 · 1 comment

Comments

@daguitosama
Copy link

How to embed checkouts on not-logged-in customers buying experiences ?

On the Embedded Checkout tutorial, as explained, in order to embed the checkout we need first to "Redirecting a logged-in customer to embedded checkout" but there is no clear path for checkouts of non-logged-in customers.
I will like to know how could be provided an alternative for client's that don't want to create an account to complete their purchase.

@bc-0dp
Copy link

bc-0dp commented Jan 16, 2024

Hi @daguitosama

Hope you are well.

I am assuming this is for a headless build?

If a customer is browsing your headless storefront as a guest (not logged in) and you want to create a checkout session for them as a guest. You can skip the Customer Login API step, and redirect them directly to the embedded_checkout_url link generated from https://api.bigcommerce.com/stores/{{store-hash}}/v3/carts/{{cart-id}}/redirect_urls
https://developer.bigcommerce.com/docs/rest-management/carts/redirects#create-cart-redirect-url

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

2 participants