-
Notifications
You must be signed in to change notification settings - Fork 331
How to Associate Checkout when click login? #132
Comments
You need to get the customerAccessToken using customerAccessTokenCreate API. However, this library does not yet support customerAccessTokenCreate API. |
I've got the token. My problem is how to get checkoutID |
Is this?
|
I think the checkout id is the same as before logging in on the web. |
yse! but here i click the log in button to open a new page , i can not know the checkout id before unless I use localstorage(or something) to save it i thinks there is some way i can get the checkout id from the redirect url(xx.com/account/login?checkout_url=https://xxx.com/861536322/checkouts/46e3d1ec037401fad36db2fe880f7be8?key=b6b5dc0043e84a20b846a3ab1b3ffdc7&step=contact_information)) |
The format of web url and checkoutId are different, so I don't think there is a way to convert it. |
There may be some way to convert to checkoutid from web url, like this #31 (comment) (get the customer id from reset url) i have no idea~ i feel the document is not complete |
You try to Base64 decode your chekcoutId. You will get gid://shopify/Checkout/xxxx?key=yyyy from your chekcoutId. Then your redirect Url is You can get the checkoutId by doing the reverse order. |
it works! thanks! I found that if I used |
but here is a another problem , when i get checkoutID and use checkoutCustomerAssociateV2 to associate customer and checkout and get success then i redirect the checkout page it still show Already have account? Login in looks like |
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 Storefront API, customer still need to log in on Shopify website. |
but i build my shopify website by storefront api looks like MULTIPASS can do this
But I can't find any documentation or examples to show me how to do this |
thanks but how to passing the customer access token using the |
In that issue, "web browsers cannot send custom headers on a page fetch unfortunately. Key is just part of the identifier for the checkout." |
so the only way is MULTIPASS ? ... |
Yes, I think so. |
thanks ~ |
My pleasure. |
From the webhook you can get abandoned_checkout_url The checkout ID using Storefront API is |
I built a website using js-buy-sdk, and then I created checkout with the following
then i got a webURL and navigate to the checkout Page
then i click Login to navigate my store page to login and Associate Checkout
there is a problem:
How do I get the checkoutId from the login link(xx.com/account/login?checkout_url=https://xxx.com/861536322/checkouts/46e3d1ec037401fad36db2fe880f7be8?key=b6b5dc0043e84a20b846a3ab1b3ffdc7&step=contact_information) to do the following:
It doesn't look like the key(b6b5dc0043e84a20b846a3ab1b3ffdc7) is the checkoutId
The text was updated successfully, but these errors were encountered: