@sahabaplus/moyasar
Version:
A comprehensive TypeScript SDK for integrating with the Moyasar payment gateway
14 lines • 496 B
JavaScript
import { MoyasarError } from "../../shared/errors/index";
export class WebhookError extends MoyasarError {
constructor(message, details) {
super(message, "WEBHOOK_ERROR", 500, details ?? {});
this.name = "WebhookError";
}
}
export class WebhookVerificationError extends WebhookError {
constructor(message = "Webhook signature verification failed") {
super(message, {});
this.name = "WebhookVerificationError";
}
}
//# sourceMappingURL=errors.js.map