UNPKG

@tecafrik/africa-payment-sdk

Version:

A single SDK to integrate all african payment providers seamlessly

18 lines 795 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PaymentErrorType = exports.PaymentError = void 0; class PaymentError extends Error { constructor(message, type = PaymentErrorType.UNKNOWN_ERROR) { super(message); this.type = type; } } exports.PaymentError = PaymentError; var PaymentErrorType; (function (PaymentErrorType) { PaymentErrorType["INVALID_AUTHORIZATION_CODE"] = "INVALID_AUTHORIZATION_CODE"; PaymentErrorType["UNSUPPORTED_PAYMENT_METHOD"] = "UNSUPPORTED_PAYMENT_METHOD"; PaymentErrorType["INVALID_PHONE_NUMBER"] = "INVALID_PHONE_NUMBER"; PaymentErrorType["UNKNOWN_ERROR"] = "UNKNOWN_ERROR"; })(PaymentErrorType || (exports.PaymentErrorType = PaymentErrorType = {})); //# sourceMappingURL=payment-error.js.map