Filter QR events to active status
All checks were successful
build-and-deploy / build-deploy (push) Successful in 34s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 34s
This commit is contained in:
@@ -247,14 +247,16 @@ 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)
|
||||||
out.add(
|
if (status == "active") {
|
||||||
RazorpayQrEventResponse(
|
out.add(
|
||||||
event = event,
|
RazorpayQrEventResponse(
|
||||||
qrId = eventQrId,
|
event = event,
|
||||||
status = status,
|
qrId = eventQrId,
|
||||||
receivedAt = log.receivedAt.toString()
|
status = status,
|
||||||
|
receivedAt = log.receivedAt.toString()
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
}
|
||||||
}
|
}
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user