mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-09 08:18:20 +00:00
Update webhooks.controller.ts
This commit is contained in:
@@ -38,6 +38,11 @@ export class WebhooksController {
|
|||||||
description: 'Webhook endpoint for Telebirr payment status updates. Used by Ethiopian passengers.'
|
description: 'Webhook endpoint for Telebirr payment status updates. Used by Ethiopian passengers.'
|
||||||
})
|
})
|
||||||
async receiveTelebirr(@Body() payload: TelebirrWebhookPayload) {
|
async receiveTelebirr(@Body() payload: TelebirrWebhookPayload) {
|
||||||
|
|
||||||
|
this.logger.log(
|
||||||
|
`Telebirr webhook Called`,
|
||||||
|
);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await this.telebirr.handle(payload);
|
await this.telebirr.handle(payload);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user