@flopay/vue 1.14.11 → 1.14.12

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/dist/index.cjs CHANGED
@@ -1170,13 +1170,15 @@ async function chargeSavedPayment(options) {
1170
1170
  const { api, session, unified, signal } = options;
1171
1171
  const nonce = options.nonce || session.clientSecret || void 0;
1172
1172
  const completeAction = async (nextActionRedirectUrl, actionNonce) => {
1173
+ const challengeTelemetry = (0, import_js.beginSavedCardChallengeTelemetry)(api, session.id, session);
1173
1174
  const completed = await (0, import_js.completeSavedCardNextAction)(
1174
1175
  {
1175
1176
  billingApiUrl: options.billingApiUrl,
1176
1177
  sessionId: session.id,
1177
1178
  nonce: actionNonce,
1178
1179
  nextActionRedirectUrl,
1179
- ...signal ? { signal } : {}
1180
+ ...signal ? { signal } : {},
1181
+ ...challengeTelemetry ? { telemetry: challengeTelemetry } : {}
1180
1182
  },
1181
1183
  api
1182
1184
  );
package/dist/index.mjs CHANGED
@@ -71,7 +71,10 @@ import {
71
71
  } from "vue";
72
72
 
73
73
  // src/saved-payment.ts
74
- import { completeSavedCardNextAction } from "@flopay/js";
74
+ import {
75
+ beginSavedCardChallengeTelemetry,
76
+ completeSavedCardNextAction
77
+ } from "@flopay/js";
75
78
  import { FloPayError, normalizeCheckoutFailureOutcome } from "@flopay/shared";
76
79
  var SAVED_PAYMENT_SUCCESS_DELAY_MS = 600;
77
80
  function isTerminalSuccess(session) {
@@ -117,13 +120,15 @@ async function chargeSavedPayment(options) {
117
120
  const { api, session, unified, signal } = options;
118
121
  const nonce = options.nonce || session.clientSecret || void 0;
119
122
  const completeAction = async (nextActionRedirectUrl, actionNonce) => {
123
+ const challengeTelemetry = beginSavedCardChallengeTelemetry(api, session.id, session);
120
124
  const completed = await completeSavedCardNextAction(
121
125
  {
122
126
  billingApiUrl: options.billingApiUrl,
123
127
  sessionId: session.id,
124
128
  nonce: actionNonce,
125
129
  nextActionRedirectUrl,
126
- ...signal ? { signal } : {}
130
+ ...signal ? { signal } : {},
131
+ ...challengeTelemetry ? { telemetry: challengeTelemetry } : {}
127
132
  },
128
133
  api
129
134
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flopay/vue",
3
- "version": "1.14.11",
3
+ "version": "1.14.12",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "publishConfig": {
@@ -36,10 +36,10 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@flopay/js": "1.14.11",
40
- "@flopay/shared": "1.14.11",
39
+ "@flopay/js": "1.14.12",
40
+ "@flopay/shared": "1.14.12",
41
41
  "@paypal/paypal-js": "^10.1.0",
42
- "@stripe/stripe-js": "^10.2.1"
42
+ "@stripe/stripe-js": "^10.3.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "vue": ">=3.3.0"