@flopay/vue 1.19.0 → 1.20.0

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/README.md CHANGED
@@ -193,6 +193,12 @@ h(FloPayCheckout, {
193
193
  });
194
194
  ```
195
195
 
196
+ ### Stripe account switch
197
+
198
+ `@flopay/react`'s `FloPayCheckout` re-mounts its wallet buttons when a claim moves the checkout to another Stripe account, and tells the billing API it can. The Vue port of that Stripe account switch follows with SDK 2.0, and `FloPayCheckout` here gets no account-switch code before then.
199
+
200
+ Until then `@flopay/vue` does not send the `stripe-account-switch-v1` capability, so when a claim would change the Stripe account the billing API hides Apple Pay and Google Pay for the Vue checkout, as it does today; card and PayPal stay available. The detached create's `routingProducts` hint (the cart's product codes) comes from `@flopay/js` and is sent by the Vue checkout too, so a cart whose products use another Stripe account normally starts on that account from the first response and the claim does not move it.
201
+
196
202
  ## Errors
197
203
 
198
204
  Errors are `FloPayError` instances from `@flopay/shared`, emitted through `@error`.
package/dist/index.cjs CHANGED
@@ -2977,15 +2977,18 @@ var SplitCardForm = (0, import_vue6.defineComponent)({
2977
2977
  const captureMethod = session.value?.captureMethod;
2978
2978
  const flopay = provider?.flopay.value;
2979
2979
  const cardFieldsTimeoutMs = props.cardFieldsTimeoutMs;
2980
+ const sessionToken = nonce.value;
2980
2981
  const adapter = flopay ? flopay.cardCapture({
2981
2982
  sessionId: id,
2982
2983
  ...captureMethod ? { captureMethod } : {},
2984
+ sessionToken,
2983
2985
  cardFieldsTimeoutMs
2984
2986
  }) : new import_card_setup3.PciVaultCardCapture({
2985
2987
  sessionId: id,
2986
2988
  ...captureMethod ? { captureMethod } : {},
2987
2989
  billingApiUrl: billingApiUrl.value,
2988
2990
  telemetry: props.telemetry,
2991
+ sessionToken,
2989
2992
  cardFieldsTimeoutMs
2990
2993
  });
2991
2994
  const detachAdapterOutcomes = bindOutcomes(adapter);
package/dist/index.mjs CHANGED
@@ -1878,15 +1878,18 @@ var SplitCardForm = defineComponent3({
1878
1878
  const captureMethod = session.value?.captureMethod;
1879
1879
  const flopay = provider?.flopay.value;
1880
1880
  const cardFieldsTimeoutMs = props.cardFieldsTimeoutMs;
1881
+ const sessionToken = nonce.value;
1881
1882
  const adapter = flopay ? flopay.cardCapture({
1882
1883
  sessionId: id,
1883
1884
  ...captureMethod ? { captureMethod } : {},
1885
+ sessionToken,
1884
1886
  cardFieldsTimeoutMs
1885
1887
  }) : new PciVaultCardCapture({
1886
1888
  sessionId: id,
1887
1889
  ...captureMethod ? { captureMethod } : {},
1888
1890
  billingApiUrl: billingApiUrl.value,
1889
1891
  telemetry: props.telemetry,
1892
+ sessionToken,
1890
1893
  cardFieldsTimeoutMs
1891
1894
  });
1892
1895
  const detachAdapterOutcomes = bindOutcomes(adapter);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flopay/vue",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "publishConfig": {
@@ -36,8 +36,8 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@flopay/js": "1.19.0",
40
- "@flopay/shared": "1.19.0",
39
+ "@flopay/js": "1.20.0",
40
+ "@flopay/shared": "1.20.0",
41
41
  "@paypal/paypal-js": "^11.3.0",
42
42
  "@stripe/stripe-js": "^10.3.0"
43
43
  },