Late callbacks after order cleanup: retained claims, archive lookup and one-time credit
Removing an order from the active database does not make its payment unprocessed. Design archive lookup and retained claim evidence before cleanup. This is planned retention management, rather than recovery from a database incident.
Continue by topic
Confirm commercial and retention boundaries
WeChat Pay, Alipay and UnionPay depend on approved configuration. Confirm eligibility, onboarding, fee basis and transaction/cumulative limits. Merchant USDT settlement of CNY collections currently uses TRON/TRC20 only; confirm conditions, fees and timing separately. Cleanup does not cancel unsettled or after-sales obligations.
Obtain credentials privately. Confirm retry, historical-query and acknowledgement rules with the team; assume no universal callback expiry. Record payment, business credit/delivery and merchant settlement separately. Assess retention against applicable obligations and business need; no fixed legal period is proposed here.
Separate details from retained claim evidence
Map dependencies among details, payment claims, delivery, refunds and settlement references. Removing a display name must not erase processed-payment uniqueness. Restrict archive access; do not retain full callbacks, secrets or personal profiles indefinitely in a deduplication table.
Fictional DEMO-ARCH-7 may retain merchant/environment scope, stable payment reference, claim result and ledger locator after details move. These are design examples, not API fields. If using digest keys, assess collisions and linkability; a digest is neither automatically anonymous nor a replacement for audit evidence.
Keep cleanup and callbacks consistent
Establish and verify retained claims before batch cleanup, with recovery between steps. Database uniqueness can guard duplicate claims. For cross-database archives, verify completeness and lookup before removing source details; the existence of a file does not prove completion.
Verify late notifications under the formal contract, then match merchant, original order, amount, currency and status. A processed claim adds no credit. Archive failure or missing evidence requires investigation, never automatic creation of a paid order. Acknowledge according to the real contract and durable result.
Test the same payment across cleanup
In isolation, replay fictional references before and after cleanup, with archive failure, interrupted cleanup, cross-merchant reuse, open refunds and unclaimed historical payments. Inspect ledger deltas and delivery counts, not HTTP success alone.
DEMO-ARCH-7 must retain one original delivery and zero additional credit on replay, with settlement traceability. Keep batch counts, failures and recovery points. Stop on mistaken deletion and restore from evidence; do not redeliver merely to repair totals. Reconcile payment, business entries, after-sales and settlement.
Frequently asked questions
Is the order number alone enough?
Also scope it to merchant/environment and retain a result and ledger locator. Assess the minimum against actual contracts and obligations.
Does archive lookup failure prove no credit occurred?
No. Temporary unavailability differs from an unprocessed payment. Investigate historical evidence before any credit.