Filter QR events to active status
All checks were successful
build-and-deploy / build-deploy (push) Successful in 34s

This commit is contained in:
androidlover5842
2026-02-01 11:46:00 +05:30
parent a86b8ef88d
commit 9c80a15130

View File

@@ -247,6 +247,7 @@ class RazorpayQrPayments(
val eventQrId = qrEntity.path("id").asText(null) val eventQrId = qrEntity.path("id").asText(null)
if (eventQrId != qrId) continue if (eventQrId != qrId) continue
val status = qrEntity.path("status").asText(null) val status = qrEntity.path("status").asText(null)
if (status == "active") {
out.add( out.add(
RazorpayQrEventResponse( RazorpayQrEventResponse(
event = event, event = event,
@@ -256,6 +257,7 @@ class RazorpayQrPayments(
) )
) )
} }
}
return out return out
} }