Skip to content

Commit

Permalink
Merge pull request #238 from flickmatch/razorpay-fix
Browse files Browse the repository at this point in the history
Razorpay fix
  • Loading branch information
abhimanyu-fm authored May 23, 2024
2 parents 1ebe363 + 1e7c74c commit ed6fe5a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public class RazorPaymentCallbackController {
@Value("${razorpay.key.secret}")
private String secret;

@Autowired
WhatsAppProxy whatsAppProxy;
// @Autowired
// WhatsAppProxy whatsAppProxy;

// @PostMapping("/processRazorPayment")
@RequestMapping(value = "/processRazorPayment", method = RequestMethod.POST,consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
Expand Down Expand Up @@ -78,7 +78,7 @@ public ResponseEntity<?> processRazorCallback(@RequestParam("razorpay_order_id")
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body("Error processing callback");
}

whatsAppProxy.sendNotification(eventBuilder.getEventDataForNotification(uniqueEventId));
// whatsAppProxy.sendNotification(eventBuilder.getEventDataForNotification(uniqueEventId));
HttpHeaders headers = new HttpHeaders();
headers.add("Location", "https://play.flickmatch.in/match-queues#"+uniqueEventId);
return new ResponseEntity<>(headers, HttpStatus.FOUND);
Expand Down

0 comments on commit ed6fe5a

Please sign in to comment.