Replace PayU integration with Razorpay
All checks were successful
build-and-deploy / build-deploy (push) Successful in 33s

This commit is contained in:
androidlover5842
2026-02-01 09:44:57 +05:30
parent 93ac0dbc9e
commit ebaef53f98
38 changed files with 935 additions and 1421 deletions

View File

@@ -10,8 +10,8 @@ internal object PublicEndpoints {
private val roomTypes = Regex("^/properties/[^/]+/room-types$")
private val roomTypeImages = Regex("^/properties/[^/]+/room-types/[^/]+/images$")
private val iconPngFile = Regex("^/icons/png/[^/]+$")
private val payuWebhook = Regex("^/properties/[^/]+/payu/webhook$")
private val payuReturn = Regex("^/properties/[^/]+/payu/return/(success|failure)$")
private val razorpayWebhook = Regex("^/properties/[^/]+/razorpay/webhook$")
private val razorpayReturn = Regex("^/properties/[^/]+/razorpay/return/(success|failure)$")
private val guestDocumentFile = Regex("^/properties/[^/]+/guests/[^/]+/documents/[^/]+/file$")
fun isPublic(request: HttpServletRequest): Boolean {
@@ -26,8 +26,8 @@ internal object PublicEndpoints {
|| (roomsByType.matches(path) && method == "GET")
|| (roomTypes.matches(path) && method == "GET")
|| roomTypeImages.matches(path)
|| (payuWebhook.matches(path) && method == "POST")
|| payuReturn.matches(path)
|| (razorpayWebhook.matches(path) && method == "POST")
|| razorpayReturn.matches(path)
|| (path == "/image-tags" && method == "GET")
|| path == "/icons/png"
|| iconPngFile.matches(path)