@flopay/vue 1.16.1 → 1.16.3
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 +3 -2
- package/dist/index.mjs +4 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3773,8 +3773,7 @@ var FloPayCheckout = (0, import_vue7.defineComponent)({
|
|
|
3773
3773
|
if (failure.code === "three_ds_aborted") return;
|
|
3774
3774
|
modeError.value = failure.message;
|
|
3775
3775
|
mode.value = "full";
|
|
3776
|
-
(0, import_shared9.
|
|
3777
|
-
if (sessionId) {
|
|
3776
|
+
if (sessionId && (0, import_shared9.isDeclineCallbackFailure)(failure)) {
|
|
3778
3777
|
const decline = {
|
|
3779
3778
|
method: "card",
|
|
3780
3779
|
message: failure.message,
|
|
@@ -3783,6 +3782,8 @@ var FloPayCheckout = (0, import_vue7.defineComponent)({
|
|
|
3783
3782
|
sessionId
|
|
3784
3783
|
};
|
|
3785
3784
|
(0, import_shared9.invokeMerchantCallback)(() => emit("decline", decline));
|
|
3785
|
+
} else {
|
|
3786
|
+
(0, import_shared9.invokeMerchantCallback)(() => emit("error", failure));
|
|
3786
3787
|
}
|
|
3787
3788
|
} finally {
|
|
3788
3789
|
savedPaymentRunning.value = false;
|
package/dist/index.mjs
CHANGED
|
@@ -42,6 +42,7 @@ import {
|
|
|
42
42
|
FloPayError as FloPayError4,
|
|
43
43
|
hashCreateParams,
|
|
44
44
|
invokeMerchantCallback as invokeMerchantCallback3,
|
|
45
|
+
isDeclineCallbackFailure,
|
|
45
46
|
isDetachedSessionEligible,
|
|
46
47
|
legacyCachedSessionMatchesDraft,
|
|
47
48
|
markSessionRecentlyCompleted as markSessionRecentlyCompleted2,
|
|
@@ -2674,8 +2675,7 @@ var FloPayCheckout = defineComponent4({
|
|
|
2674
2675
|
if (failure.code === "three_ds_aborted") return;
|
|
2675
2676
|
modeError.value = failure.message;
|
|
2676
2677
|
mode.value = "full";
|
|
2677
|
-
|
|
2678
|
-
if (sessionId) {
|
|
2678
|
+
if (sessionId && isDeclineCallbackFailure(failure)) {
|
|
2679
2679
|
const decline = {
|
|
2680
2680
|
method: "card",
|
|
2681
2681
|
message: failure.message,
|
|
@@ -2684,6 +2684,8 @@ var FloPayCheckout = defineComponent4({
|
|
|
2684
2684
|
sessionId
|
|
2685
2685
|
};
|
|
2686
2686
|
invokeMerchantCallback3(() => emit("decline", decline));
|
|
2687
|
+
} else {
|
|
2688
|
+
invokeMerchantCallback3(() => emit("error", failure));
|
|
2687
2689
|
}
|
|
2688
2690
|
} finally {
|
|
2689
2691
|
savedPaymentRunning.value = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flopay/vue",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.3",
|
|
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.16.
|
|
40
|
-
"@flopay/shared": "1.16.
|
|
39
|
+
"@flopay/js": "1.16.3",
|
|
40
|
+
"@flopay/shared": "1.16.3",
|
|
41
41
|
"@paypal/paypal-js": "^11.3.0",
|
|
42
42
|
"@stripe/stripe-js": "^10.3.0"
|
|
43
43
|
},
|