@fat-zebra/sdk 2.0.4 → 2.0.5-beta.1

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
@@ -325,17 +325,6 @@ class FatZebra {
325
325
  }
326
326
  FatZebra.displayName = "FatZebra";
327
327
  export default FatZebra;
328
- __decorate([
329
- logMethod({
330
- mapArgs: (args) => {
331
- return [
332
- {
333
- payment_intent: args[1]
334
- },
335
- ];
336
- },
337
- })
338
- ], FatZebra.prototype, "requestThreeDSecureEnabled", null);
339
328
  __decorate([
340
329
  logMethod({
341
330
  mapArgs: (args) => {
@@ -372,18 +361,6 @@ __decorate([
372
361
  __decorate([
373
362
  logMethod()
374
363
  ], FatZebra.prototype, "renderClickToPay", null);
375
- __decorate([
376
- logMethod({
377
- mapArgs: (args) => {
378
- return [
379
- {
380
- data: args[0],
381
- payment_intent: args[1]
382
- },
383
- ];
384
- },
385
- })
386
- ], FatZebra.prototype, "reportThreeDSecureFetched", null);
387
364
  __decorate([
388
365
  logMethod({
389
366
  mapArgs: (args) => {
@@ -183,12 +183,16 @@ class ThreeDSecure {
183
183
  if (this.deviceProfileReadyHandler) {
184
184
  off(PublicEvent.DEVICE_PROFILE_READY_THREE_D_SECURE_EVENT, this.deviceProfileReadyHandler);
185
185
  }
186
- this.deviceProfileReadyHandler = () => this.checkEnrollment({
187
- paymentIntent: this.paymentIntent,
188
- cardToken: this.cardToken,
189
- merchantUsername: this.merchantUsername,
190
- cybersourceReferenceId: this.cybersourceReferenceId,
191
- });
186
+ this.deviceProfileReadyHandler = () => {
187
+ off(PublicEvent.DEVICE_PROFILE_READY_THREE_D_SECURE_EVENT, this.deviceProfileReadyHandler);
188
+ this.deviceProfileReadyHandler = null;
189
+ this.checkEnrollment({
190
+ paymentIntent: this.paymentIntent,
191
+ cardToken: this.cardToken,
192
+ merchantUsername: this.merchantUsername,
193
+ cybersourceReferenceId: this.cybersourceReferenceId,
194
+ });
195
+ };
192
196
  on(PublicEvent.DEVICE_PROFILE_READY_THREE_D_SECURE_EVENT, this.deviceProfileReadyHandler);
193
197
  }
194
198
  setLoading(loading = true) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fat-zebra/sdk",
3
- "version": "2.0.4",
3
+ "version": "2.0.5-beta.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {