Shopify Provider (#186)

* Start of Shopify provider

* add missing comment to documentation

* add missing env vars to documentation

* update reference to types file
This commit is contained in:
Peter Mekhaeil
2021-02-12 22:14:16 +08:00
committed by GitHub
parent 85f429c115
commit 300d04c1ac
39 changed files with 1245 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
export const getCheckoutIdFromStorage = (token: string) => {
if (window && window.sessionStorage) {
return window.sessionStorage.getItem(token)
}
return null
}
export const setCheckoutIdInStorage = (token: string, id: string | number) => {
if (window && window.sessionStorage) {
return window.sessionStorage.setItem(token, id + '')
}
}