Skip to content

Commit 8c52136

Browse files
committed
[G2P-3386] fix: update payment status based on reconciliation response
1 parent 246d1ad commit 8c52136

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

g2p_payment_g2p_connect/models/payment_manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ def payments_status_check(self, id_):
304304
"reversal_entry_sequence": recon["reversal_entry_sequence"],
305305
"reversal_entry_date": recon["reversal_entry_date"],
306306
"reversal_reason": recon["reversal_reason"],
307+
"status": "paid"
308+
if recon["remittance_statement_id"] and not recon["reversal_statement_id"]
309+
else "failed",
307310
}
308311
)
309312

0 commit comments

Comments
 (0)