From 5437930ee31e21a5a2a7bce8dff879c2961a18e0 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Wed, 16 Oct 2024 22:15:17 +0530 Subject: [PATCH] Webhook logs. --- .../platform/rest/RazorPaymentCallbackController.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/src/main/java/com/flickmatch/platform/rest/RazorPaymentCallbackController.java b/platform/src/main/java/com/flickmatch/platform/rest/RazorPaymentCallbackController.java index b1558ba0..d9d323c6 100644 --- a/platform/src/main/java/com/flickmatch/platform/rest/RazorPaymentCallbackController.java +++ b/platform/src/main/java/com/flickmatch/platform/rest/RazorPaymentCallbackController.java @@ -156,4 +156,11 @@ public ResponseEntity processRazorCallback(@RequestParam("razorpay_order_id") } + + @PostMapping("/razorpay-webhook") + public ResponseEntity razorpayWebhook(@RequestBody(required = false) String payload) { + log.info("Razorpay Webhook received: {}", payload); + return ResponseEntity.ok().build(); + } + }