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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/provider.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopflo-appbrew",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "main": "./src/index.ts",
5
5
  "types": "./src/index.ts",
6
6
  "exports": {
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),