@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
27 lines (26 loc) • 851 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
class AdyenCheckoutError extends Error {
static errorTypes = {
/** Network error. */
NETWORK_ERROR: 'NETWORK_ERROR',
/** Shopper canceled the current transaction. */
CANCEL: 'CANCEL',
/** Implementation error. The method or parameter are incorrect or are not supported. */
IMPLEMENTATION_ERROR: 'IMPLEMENTATION_ERROR',
/** Generic error. */
ERROR: 'ERROR',
/** Error while requesting new session from sessionData */
SESSION_ERROR: 'SESSION_ERROR'
};
constructor(type, message, options) {
super(message);
this.name = AdyenCheckoutError.errorTypes[type];
this.cause = options?.cause;
}
}
var _default = exports.default = AdyenCheckoutError;
//# sourceMappingURL=AdyenCheckoutError.js.map