Is there a way to pass a customer access token to checkout?(using Buy Button JS)

secdet
New Member
3 0 0

I have a button with destination = checkout and on the click, it sends a graphql query and it looks like I can put the token there but we don't have a graphql client. Tried to do something inside openCheckout: function(product) {} handler but couldn't find anything where I can put my token. Also found that you can set a request header `X-Shopify-Customer-Access-Token` would that help?

0 Likes
secdet
New Member
3 0 0

Anyone?

0 Likes
secdet
New Member
3 0 0

Or at least a way to put some options so the checkout popup would be filled with some data

0 Likes