AlexanderProd / gatsby-shopify-starter

🛍 Simple starter to build a blazing fast Shopify store with Gatsby.
https://gatsby-shopify-starter.alexanderhoerl.de
Other
422 stars 95 forks source link

Is the checkout opening in a new tab a technical limitation? #47

Closed cordial closed 4 years ago

cordial commented 4 years ago

hey again!

I noticed you open the checkout using window.open and was wonder why you decided to load it in a new tab? Is it because if I were to open it in the same tab as the site, I would lose the ability to get back to the site after the checkout process? It isn't ideal having it in a different tab as it is but I was wondering if it is like this for a reason (I imagine there is one)?

cordial commented 4 years ago

Sorry, this is more a question that an issue.

AlexanderProd commented 4 years ago

Hey,

When using the Shopify checkout sdk, they want the checkout site to be loaded in a new tab instead of an iFrame. It’s not recommended to run the checkout in an iFrame in terms of security.

cordial commented 4 years ago

It can't just be run in the same tab as its on full page though?

AlexanderProd commented 4 years ago

Sure I guess you could do that, never thought much it tbh.