Skip to content

Commit

Permalink
Webhook logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
guptakshitij2308 committed Oct 16, 2024
1 parent efbb7ad commit 5437930
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,11 @@ public ResponseEntity<?> processRazorCallback(@RequestParam("razorpay_order_id")


}

@PostMapping("/razorpay-webhook")
public ResponseEntity<Void> razorpayWebhook(@RequestBody(required = false) String payload) {
log.info("Razorpay Webhook received: {}", payload);

Check failure

Code scanning / CodeQL

Log Injection High

This log entry depends on a
user-provided value
.
return ResponseEntity.ok().build();
}

}

0 comments on commit 5437930

Please sign in to comment.