mirror of
https://github.com/vercel/commerce.git
synced 2025-07-27 04:01:23 +00:00
Implement Shopify Provider
This commit is contained in:
8
framework/shopify/utils/get-checkout-id.ts
Normal file
8
framework/shopify/utils/get-checkout-id.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import Cookies from 'js-cookie'
|
||||
import { SHOPIFY_CHECKOUT_COOKIE } from '..'
|
||||
|
||||
const getCheckoutId = (id?: string) => {
|
||||
return id ?? Cookies.get(SHOPIFY_CHECKOUT_COOKIE)
|
||||
}
|
||||
|
||||
export default getCheckoutId
|
Reference in New Issue
Block a user