isamu arimoto

Results 13 comments of isamu arimoto

You need to get the customerAccessToken using customerAccessTokenCreate API. https://shopify.dev/docs/storefront-api/reference/customers/customeraccesstokencreate However, this library does not yet support customerAccessTokenCreate API.

Is this? ``` const client = Client.buildClient({ domain, storefrontAccessToken: token }) const checkout = await client.checkout.create() const checkoutID = checkout.id; ```

I think the checkout id is the same as before logging in on the web.

The format of web url and checkoutId are different, so I don't think there is a way to convert it. I think the only way to do this is to...

You try to Base64 decode your chekcoutId. You will get gid://shopify/Checkout/xxxx?key=yyyy from your chekcoutId. Then your redirect Url is https://aaaa.myshopify.com/11111/checkouts/xxxx?key=yyyy You can get the checkoutId by doing the reverse order.

I've seen before that for security reasons, Storefront login information can't be passed on to Shopify web site. That means: even if you link with customer and checkout using the...

https://github.com/Shopify/js-buy-sdk/issues/561

In that issue, "web browsers cannot send custom headers on a page fetch unfortunately. Key is just part of the identifier for the checkout."