A completed incoming Transaction pays the deal
Revolut Business sends TransactionCreated and then TransactionStateChanged as money arrives. When an incoming Transaction reaches the state completed, the Krokul connector compares its amount and currency with open payment plan lines. With exactly one match, Krokul records a payment fact on that line and fires payment.received.