@flopay/vue 1.14.11 → 1.14.13
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 +10 -3
- package/dist/index.mjs +7 -2
- package/dist/payment-method-setup-entry.cjs +7 -2
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -5,8 +5,13 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esm = (fn, res) => function __init() {
|
|
9
|
-
|
|
8
|
+
var __esm = (fn, res, err) => function __init() {
|
|
9
|
+
if (err) throw err[0];
|
|
10
|
+
try {
|
|
11
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
12
|
+
} catch (e) {
|
|
13
|
+
throw err = [e], e;
|
|
14
|
+
}
|
|
10
15
|
};
|
|
11
16
|
var __export = (target, all) => {
|
|
12
17
|
for (var name in all)
|
|
@@ -1170,13 +1175,15 @@ async function chargeSavedPayment(options) {
|
|
|
1170
1175
|
const { api, session, unified, signal } = options;
|
|
1171
1176
|
const nonce = options.nonce || session.clientSecret || void 0;
|
|
1172
1177
|
const completeAction = async (nextActionRedirectUrl, actionNonce) => {
|
|
1178
|
+
const challengeTelemetry = (0, import_js.beginSavedCardChallengeTelemetry)(api, session.id, session);
|
|
1173
1179
|
const completed = await (0, import_js.completeSavedCardNextAction)(
|
|
1174
1180
|
{
|
|
1175
1181
|
billingApiUrl: options.billingApiUrl,
|
|
1176
1182
|
sessionId: session.id,
|
|
1177
1183
|
nonce: actionNonce,
|
|
1178
1184
|
nextActionRedirectUrl,
|
|
1179
|
-
...signal ? { signal } : {}
|
|
1185
|
+
...signal ? { signal } : {},
|
|
1186
|
+
...challengeTelemetry ? { telemetry: challengeTelemetry } : {}
|
|
1180
1187
|
},
|
|
1181
1188
|
api
|
|
1182
1189
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -71,7 +71,10 @@ import {
|
|
|
71
71
|
} from "vue";
|
|
72
72
|
|
|
73
73
|
// src/saved-payment.ts
|
|
74
|
-
import {
|
|
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
|
);
|
|
@@ -5,8 +5,13 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esm = (fn, res) => function __init() {
|
|
9
|
-
|
|
8
|
+
var __esm = (fn, res, err) => function __init() {
|
|
9
|
+
if (err) throw err[0];
|
|
10
|
+
try {
|
|
11
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
12
|
+
} catch (e) {
|
|
13
|
+
throw err = [e], e;
|
|
14
|
+
}
|
|
10
15
|
};
|
|
11
16
|
var __export = (target, all) => {
|
|
12
17
|
for (var name in all)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flopay/vue",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.13",
|
|
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.
|
|
40
|
-
"@flopay/shared": "1.14.
|
|
41
|
-
"@paypal/paypal-js": "^
|
|
42
|
-
"@stripe/stripe-js": "^10.
|
|
39
|
+
"@flopay/js": "1.14.13",
|
|
40
|
+
"@flopay/shared": "1.14.13",
|
|
41
|
+
"@paypal/paypal-js": "^11.3.0",
|
|
42
|
+
"@stripe/stripe-js": "^10.3.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"vue": ">=3.3.0"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@vue/server-renderer": "3.5.45",
|
|
49
49
|
"@vue/test-utils": "^2.4.6",
|
|
50
50
|
"jsdom": "^29.1.1",
|
|
51
|
-
"tsup": "^
|
|
51
|
+
"tsup": "^9.0.0",
|
|
52
52
|
"typescript": "^7.0.2",
|
|
53
53
|
"vitest": "4.1.12",
|
|
54
54
|
"vue": "3.5.45"
|