@flopay/vue 1.16.2 → 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 -4
- package/dist/index.mjs +4 -5
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3773,10 +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
|
-
if (
|
|
3777
|
-
(0, import_shared9.invokeMerchantCallback)(() => emit("error", failure));
|
|
3778
|
-
}
|
|
3779
|
-
if (sessionId) {
|
|
3776
|
+
if (sessionId && (0, import_shared9.isDeclineCallbackFailure)(failure)) {
|
|
3780
3777
|
const decline = {
|
|
3781
3778
|
method: "card",
|
|
3782
3779
|
message: failure.message,
|
|
@@ -3785,6 +3782,8 @@ var FloPayCheckout = (0, import_vue7.defineComponent)({
|
|
|
3785
3782
|
sessionId
|
|
3786
3783
|
};
|
|
3787
3784
|
(0, import_shared9.invokeMerchantCallback)(() => emit("decline", decline));
|
|
3785
|
+
} else {
|
|
3786
|
+
(0, import_shared9.invokeMerchantCallback)(() => emit("error", failure));
|
|
3788
3787
|
}
|
|
3789
3788
|
} finally {
|
|
3790
3789
|
savedPaymentRunning.value = false;
|
package/dist/index.mjs
CHANGED
|
@@ -42,8 +42,8 @@ import {
|
|
|
42
42
|
FloPayError as FloPayError4,
|
|
43
43
|
hashCreateParams,
|
|
44
44
|
invokeMerchantCallback as invokeMerchantCallback3,
|
|
45
|
+
isDeclineCallbackFailure,
|
|
45
46
|
isDetachedSessionEligible,
|
|
46
|
-
isExpectedPaymentDecline,
|
|
47
47
|
legacyCachedSessionMatchesDraft,
|
|
48
48
|
markSessionRecentlyCompleted as markSessionRecentlyCompleted2,
|
|
49
49
|
persistCachedInlineIdempotencyKey,
|
|
@@ -2675,10 +2675,7 @@ var FloPayCheckout = defineComponent4({
|
|
|
2675
2675
|
if (failure.code === "three_ds_aborted") return;
|
|
2676
2676
|
modeError.value = failure.message;
|
|
2677
2677
|
mode.value = "full";
|
|
2678
|
-
if (
|
|
2679
|
-
invokeMerchantCallback3(() => emit("error", failure));
|
|
2680
|
-
}
|
|
2681
|
-
if (sessionId) {
|
|
2678
|
+
if (sessionId && isDeclineCallbackFailure(failure)) {
|
|
2682
2679
|
const decline = {
|
|
2683
2680
|
method: "card",
|
|
2684
2681
|
message: failure.message,
|
|
@@ -2687,6 +2684,8 @@ var FloPayCheckout = defineComponent4({
|
|
|
2687
2684
|
sessionId
|
|
2688
2685
|
};
|
|
2689
2686
|
invokeMerchantCallback3(() => emit("decline", decline));
|
|
2687
|
+
} else {
|
|
2688
|
+
invokeMerchantCallback3(() => emit("error", failure));
|
|
2690
2689
|
}
|
|
2691
2690
|
} finally {
|
|
2692
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
|
},
|