@flopay/vue 1.16.0 → 1.16.2

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
@@ -3773,7 +3773,9 @@ 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.invokeMerchantCallback)(() => emit("error", failure));
3776
+ if (!(sessionId && (0, import_shared9.isExpectedPaymentDecline)(failure))) {
3777
+ (0, import_shared9.invokeMerchantCallback)(() => emit("error", failure));
3778
+ }
3777
3779
  if (sessionId) {
3778
3780
  const decline = {
3779
3781
  method: "card",
package/dist/index.mjs CHANGED
@@ -43,6 +43,7 @@ import {
43
43
  hashCreateParams,
44
44
  invokeMerchantCallback as invokeMerchantCallback3,
45
45
  isDetachedSessionEligible,
46
+ isExpectedPaymentDecline,
46
47
  legacyCachedSessionMatchesDraft,
47
48
  markSessionRecentlyCompleted as markSessionRecentlyCompleted2,
48
49
  persistCachedInlineIdempotencyKey,
@@ -2674,7 +2675,9 @@ var FloPayCheckout = defineComponent4({
2674
2675
  if (failure.code === "three_ds_aborted") return;
2675
2676
  modeError.value = failure.message;
2676
2677
  mode.value = "full";
2677
- invokeMerchantCallback3(() => emit("error", failure));
2678
+ if (!(sessionId && isExpectedPaymentDecline(failure))) {
2679
+ invokeMerchantCallback3(() => emit("error", failure));
2680
+ }
2678
2681
  if (sessionId) {
2679
2682
  const decline = {
2680
2683
  method: "card",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flopay/vue",
3
- "version": "1.16.0",
3
+ "version": "1.16.2",
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.0",
40
- "@flopay/shared": "1.16.0",
39
+ "@flopay/js": "1.16.2",
40
+ "@flopay/shared": "1.16.2",
41
41
  "@paypal/paypal-js": "^11.3.0",
42
42
  "@stripe/stripe-js": "^10.3.0"
43
43
  },