@fat-zebra/sdk 1.5.8-beta.3 → 1.5.9

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +9 -3
  3. package/dist/applepay/applepay.js +6 -31
  4. package/dist/applepay/clients/paynow-client.js +1 -1
  5. package/dist/local/fatzebra.js +9050 -9262
  6. package/dist/local/fatzebra.js.map +1 -1
  7. package/dist/main.js +3 -3
  8. package/dist/production/fatzebra.js +7 -1
  9. package/dist/production/fatzebra.js.LICENSE.txt +1 -3
  10. package/dist/react/VerifyExistingCard.js +4 -0
  11. package/dist/react/useNotification.d.ts +11 -0
  12. package/dist/react/useNotification.js +26 -0
  13. package/dist/sandbox/cdn.pmnts-sandbox.io/sdk/v1/fatzebra.js +8 -0
  14. package/dist/sandbox/fatzebra.js +7 -1
  15. package/dist/sandbox/fatzebra.js.LICENSE.txt +1 -1
  16. package/dist/sandbox/orikan-workspace/qa-banyule-ssp-imaas.np.orikan.tech/main-es2015.a50b3edc3412ce44ee0d.js +66771 -0
  17. package/dist/sca/index.js +2 -2
  18. package/dist/sca/scenarios/enrollment.js +2 -2
  19. package/dist/sca/scenarios/validation.js +3 -3
  20. package/dist/staging/fatzebra.js +16709 -17088
  21. package/dist/staging/fatzebra.js.map +1 -1
  22. package/dist/validation/schemas/click-to-pay/load-params.json +2 -2
  23. package/dist/validation/schemas/hpp-load-params.json +2 -2
  24. package/dist/validation/schemas/payment-intent.json +0 -3
  25. package/dist/validation/schemas/payment-method.json +17 -49
  26. package/dist/validation/validation-helper.js +2 -1
  27. package/dist/validation/validators/apple-pay-load-params-button-validator.d.ts +1 -2
  28. package/dist/validation/validators/apple-pay-load-params-button-validator.js +1 -2
  29. package/dist/validation/validators/click-to-pay-load-params-validator.d.ts +1 -2
  30. package/dist/validation/validators/click-to-pay-load-params-validator.js +1 -2
  31. package/dist/validation/validators/hpp-load-params-validator.d.ts +1 -2
  32. package/dist/validation/validators/hpp-load-params-validator.js +5 -4
  33. package/dist/validation/validators/verify-card-params-validator.d.ts +1 -2
  34. package/dist/validation/validators/verify-card-params-validator.js +5 -4
  35. package/dist/version.d.ts +1 -1
  36. package/dist/version.js +1 -1
  37. package/package.json +5 -4
package/dist/sca/index.js CHANGED
@@ -90,8 +90,8 @@ class Sca {
90
90
  this._cardinal.setup(cardinalJwt);
91
91
  });
92
92
  }
93
- perform3DS(_a) {
94
- return __awaiter(this, arguments, void 0, function* ({ sessionID }) {
93
+ perform3DS({ sessionID }) {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
95
  this.sessionId = sessionID;
96
96
  // Register handler. Called after OTP is entered on challenge prompt.
97
97
  this._cardinal.onPaymentValidated((data, error) => __awaiter(this, void 0, void 0, function* () {
@@ -21,7 +21,7 @@ const enrollmentScenarios = [
21
21
  veresEnrolled: VEResEnrolled.BYPASSED,
22
22
  pares: null,
23
23
  outcome: {
24
- success: false, // no liability shift
24
+ success: false,
25
25
  authenticationType: 'bypass',
26
26
  errorCode: ScaErrorCode.BYPASSED_AUTHENTICATION
27
27
  },
@@ -34,7 +34,7 @@ const enrollmentScenarios = [
34
34
  veresEnrolled: VEResEnrolled.UNABLE,
35
35
  pares: null,
36
36
  outcome: {
37
- success: false, // no liability shift
37
+ success: false,
38
38
  errorCode: ScaErrorCode.AUTHENTICATION_NOT_AVAILABLE_ON_LOOKUP
39
39
  }
40
40
  },
@@ -34,7 +34,7 @@ const validationScenarios = [
34
34
  pares: PARes.CANCELED,
35
35
  outcome: {
36
36
  authenticationType: 'challenge',
37
- success: false, // no liability shift
37
+ success: false,
38
38
  errorCode: ScaErrorCode.UNSUCCESSFUL_STEPUP_AUTHENTICATION
39
39
  }
40
40
  },
@@ -47,7 +47,7 @@ const validationScenarios = [
47
47
  pares: PARes.NOT_COMPLETED,
48
48
  outcome: {
49
49
  authenticationType: 'challenge',
50
- success: false, // no liability shift
50
+ success: false,
51
51
  errorCode: ScaErrorCode.UNAVAILABLE_STEPUP_AUTHENTICATION
52
52
  }
53
53
  },
@@ -126,7 +126,7 @@ const validationScenarios = [
126
126
  pares: null,
127
127
  outcome: {
128
128
  authenticationType: 'challenge',
129
- success: false, // no liability shift
129
+ success: false,
130
130
  errorCode: ScaErrorCode.UNSUCCESSFUL_STEPUP_AUTHENTICATION
131
131
  }
132
132
  },