@paypercut/checkout-js 1.1.9 → 1.1.10
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
|
@@ -91,7 +91,7 @@ class Emitter {
|
|
|
91
91
|
* Production configuration (for merchants)
|
|
92
92
|
*/
|
|
93
93
|
const productionConfig = {
|
|
94
|
-
version: "1.1.
|
|
94
|
+
version: "1.1.10",
|
|
95
95
|
defaultCheckoutOrigin: 'https://buy.paypercut.io',
|
|
96
96
|
defaultApiOrigin: 'https://api.paypercut.io',
|
|
97
97
|
defaultVaultApiUrl: 'https://api.basistheory.com',
|
|
@@ -301,6 +301,7 @@ exports.SdkEvent = void 0;
|
|
|
301
301
|
SdkEvent["ThreeDSError"] = "threeds_error";
|
|
302
302
|
SdkEvent["ThreeDSCanceled"] = "threeds_canceled";
|
|
303
303
|
SdkEvent["ThreeDSStarted"] = "threeds_started";
|
|
304
|
+
SdkEvent["Cancel"] = "cancel";
|
|
304
305
|
SdkEvent["FormValidation"] = "form_validation";
|
|
305
306
|
})(exports.SdkEvent || (exports.SdkEvent = {}));
|
|
306
307
|
|
|
@@ -1917,6 +1918,12 @@ class CheckoutImpl {
|
|
|
1917
1918
|
// Forward error payload (if provided) to SDK consumers
|
|
1918
1919
|
this.emitter.emit(exports.SdkEvent.Error, (data && data.error) ?? data);
|
|
1919
1920
|
break;
|
|
1921
|
+
case 'CHECKOUT_CANCEL':
|
|
1922
|
+
this.emitter.emit(exports.SdkEvent.Cancel, {
|
|
1923
|
+
checkoutId: data.checkoutId,
|
|
1924
|
+
wallet: data.wallet,
|
|
1925
|
+
});
|
|
1926
|
+
break;
|
|
1920
1927
|
case 'CHECKOUT_EXPIRED':
|
|
1921
1928
|
this.emitter.emit(exports.SdkEvent.Expired);
|
|
1922
1929
|
break;
|