Use unique reference_id for Razorpay payment links
All checks were successful
build-and-deploy / build-deploy (push) Successful in 35s

This commit is contained in:
androidlover5842
2026-02-01 15:57:23 +05:30
parent c8bea2bcc7
commit 66fc03d855

View File

@@ -93,7 +93,8 @@ class RazorpayPaymentLinksController(
"currency" to currency,
"description" to (request.description ?: "Booking $bookingId"),
"notes" to notes,
"reference_id" to bookingId.toString()
// Razorpay requires reference_id to be unique per active link
"reference_id" to "${bookingId}-${OffsetDateTime.now().toEpochSecond()}"
)
parseExpiryEpoch(request.expiryDate)?.let { payload["expire_by"] = it }
request.isPartialPaymentAllowed?.let { payload["partial_payment"] = it }