@fat-zebra/sdk 2.0.1-beta.13 → 2.0.1-beta.14
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/hpp/hpp.d.ts +1 -0
- package/dist/hpp/hpp.js +26 -0
- package/dist/main.js +2 -1
- package/package.json +1 -1
package/dist/hpp/hpp.d.ts
CHANGED
package/dist/hpp/hpp.js
CHANGED
|
@@ -52,6 +52,7 @@ class Hpp {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
setListenersAndEmitReady() {
|
|
55
|
+
this.reportHppStatus(this);
|
|
55
56
|
if (!this.crossFrameListenersBound) {
|
|
56
57
|
this.setCrossFramesEventListeners();
|
|
57
58
|
this.crossFrameListenersBound = true;
|
|
@@ -279,8 +280,33 @@ class Hpp {
|
|
|
279
280
|
}
|
|
280
281
|
this.headless.contentWindow.postMessage(message, '*');
|
|
281
282
|
}
|
|
283
|
+
reportHppStatus(hpp) {
|
|
284
|
+
}
|
|
282
285
|
}
|
|
286
|
+
__decorate([
|
|
287
|
+
logMethod()
|
|
288
|
+
], Hpp.prototype, "setCrossFramesEventListeners", null);
|
|
289
|
+
__decorate([
|
|
290
|
+
logMethod()
|
|
291
|
+
], Hpp.prototype, "setPublicEventListeners", null);
|
|
283
292
|
__decorate([
|
|
284
293
|
logMethod()
|
|
285
294
|
], Hpp.prototype, "createPurchase", null);
|
|
295
|
+
__decorate([
|
|
296
|
+
logMethod({
|
|
297
|
+
mapArgs: (args) => {
|
|
298
|
+
const hpp = args[0];
|
|
299
|
+
return [
|
|
300
|
+
{
|
|
301
|
+
crossFrameListenersBound: hpp.crossFrameListenersBound,
|
|
302
|
+
publicEventListenersBound: hpp.publicEventListenersBound,
|
|
303
|
+
isThreeDSecureEnabled: hpp.isThreeDSecureEnabled,
|
|
304
|
+
headlessLoaded: hpp.headlessLoaded,
|
|
305
|
+
headlessPreviouslyLoaded: hpp.headlessPreviouslyLoaded,
|
|
306
|
+
iframeLoaded: hpp.iframeLoaded,
|
|
307
|
+
},
|
|
308
|
+
];
|
|
309
|
+
},
|
|
310
|
+
})
|
|
311
|
+
], Hpp.prototype, "reportHppStatus", null);
|
|
286
312
|
export { Hpp, HPP_DEFAULT_OPTIONS, };
|
package/dist/main.js
CHANGED
|
@@ -25,7 +25,7 @@ import { Hpp } from './hpp';
|
|
|
25
25
|
import ClickToPay from './click_to_pay';
|
|
26
26
|
import { validateApplePayLoadParams } from './validation/validators/apple-pay-load-params-button-validator';
|
|
27
27
|
import { ApplePay } from './applepay';
|
|
28
|
-
import { setLoggerUsername } from './logging/logger-context';
|
|
28
|
+
import { setLoggerUsername, setTransactionReference } from './logging/logger-context';
|
|
29
29
|
import { logMethod } from './logging/logMethod';
|
|
30
30
|
import ThreeDSecure from './three_d_secure';
|
|
31
31
|
export default class FatZebra {
|
|
@@ -158,6 +158,7 @@ export default class FatZebra {
|
|
|
158
158
|
});
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
|
+
setTransactionReference(params.paymentIntent.payment.reference);
|
|
161
162
|
yield this.authReady;
|
|
162
163
|
switch (params.paymentMethod.type) {
|
|
163
164
|
case PaymentMethodType.CARD: {
|