shopflo-appbrew 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/provider.ts +2 -0
package/package.json
CHANGED
package/src/provider.ts
CHANGED
|
@@ -97,6 +97,8 @@ export class ShopfloProvider implements ICheckoutProvider {
|
|
|
97
97
|
'Content-Type': 'application/json',
|
|
98
98
|
},
|
|
99
99
|
body: JSON.stringify({
|
|
100
|
+
// Same analytics session as the checkout token call
|
|
101
|
+
sf_session_id: this.getSessionId(),
|
|
100
102
|
// Same Shopify cart => same id, so Shopflo reuses the open token
|
|
101
103
|
cart_session_id: lastSegment(cartData.id),
|
|
102
104
|
items: cartData.lineItems.map(toShopfloItem),
|