diff --git a/src/main/kotlin/com/android/trisolarisserver/controller/RazorpayPaymentLinksController.kt b/src/main/kotlin/com/android/trisolarisserver/controller/RazorpayPaymentLinksController.kt index 4892da8..083d769 100644 --- a/src/main/kotlin/com/android/trisolarisserver/controller/RazorpayPaymentLinksController.kt +++ b/src/main/kotlin/com/android/trisolarisserver/controller/RazorpayPaymentLinksController.kt @@ -94,7 +94,7 @@ class RazorpayPaymentLinksController( "description" to (request.description ?: "Booking $bookingId"), "notes" to notes, // Razorpay requires reference_id to be unique per active link - "reference_id" to "${bookingId}-${OffsetDateTime.now().toEpochSecond()}" + "reference_id" to "bk_${bookingId.toString().replace("-", "").take(12)}_${OffsetDateTime.now().toEpochSecond()}" ) parseExpiryEpoch(request.expiryDate)?.let { payload["expire_by"] = it } request.isPartialPaymentAllowed?.let { payload["partial_payment"] = it }