@fat-zebra/sdk 1.5.7 → 1.5.8-beta.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/main.js CHANGED
@@ -62,8 +62,8 @@ export default class FatZebra {
62
62
  postMessageClient.setEventListeners(handlers);
63
63
  }
64
64
  verifyCard(params) {
65
- var _a;
66
65
  return __awaiter(this, void 0, void 0, function* () {
66
+ var _a;
67
67
  const valid = validateVerifyCardParams(params);
68
68
  if (!valid) {
69
69
  emit(PublicEvent.VALIDATION_ERROR, {
@@ -77,14 +77,14 @@ export default class FatZebra {
77
77
  const headless = bridge.load(process.env.PAYNOW_BRIDGE_URL);
78
78
  const card = params.paymentMethod.data;
79
79
  this.cardDidTokenize(headless, (data) => __awaiter(this, void 0, void 0, function* () {
80
- var _b;
80
+ var _a;
81
81
  const bin = card.number.substr(0, 6);
82
82
  this.sca.run({
83
83
  cardToken: data.token,
84
84
  customer: params.customer,
85
85
  paymentIntent: params.paymentIntent,
86
86
  bin,
87
- challengeWindowSize: (_b = params.options) === null || _b === void 0 ? void 0 : _b.challengeWindowSize,
87
+ challengeWindowSize: (_a = params.options) === null || _a === void 0 ? void 0 : _a.challengeWindowSize,
88
88
  });
89
89
  }));
90
90
  this.tokenizeCard(card, headless);
@@ -10,7 +10,7 @@ const ApplePayButton = ({ handlers, config }) => {
10
10
  new ApplePay(config).load({
11
11
  containerId: 'applePayButton',
12
12
  paymentIntent: config.paymentIntent,
13
- options: config.options
13
+ options: Object.assign(Object.assign({}, config.options), { react_sdk: true })
14
14
  });
15
15
  }, []);
16
16
  return React.createElement("div", { id: "applePayButton", style: { height: '100%', width: '100%' } });
package/dist/sca/index.js CHANGED
@@ -90,8 +90,8 @@ class Sca {
90
90
  this._cardinal.setup(cardinalJwt);
91
91
  });
92
92
  }
93
- perform3DS({ sessionID }) {
94
- return __awaiter(this, void 0, void 0, function* () {
93
+ perform3DS(_a) {
94
+ return __awaiter(this, arguments, void 0, function* ({ sessionID }) {
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,
24
+ success: false, // no liability shift
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,
37
+ success: false, // no liability shift
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,
37
+ success: false, // no liability shift
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,
50
+ success: false, // no liability shift
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,
129
+ success: false, // no liability shift
130
130
  errorCode: ScaErrorCode.UNSUCCESSFUL_STEPUP_AUTHENTICATION
131
131
  }
132
132
  },
@@ -104,6 +104,7 @@ export type OptionalUrlValues = {
104
104
  apple_button_style?: ApplePayButtonStyle;
105
105
  apple_button_type?: ApplePayButtonType;
106
106
  apple_button_locale?: ApplePayButtonLocale;
107
+ react_sdk?: boolean;
107
108
  };
108
109
  declare global {
109
110
  interface Window {