Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants