dev-docs icon indicating copy to clipboard operation
dev-docs copied to clipboard

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

Open daguitosama opened this issue 2 years ago • 1 comments

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.

daguitosama avatar Apr 04 '23 23:04 daguitosama

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

bc-0dp avatar Jan 16 '24 10:01 bc-0dp