Payment events and reconciliation
Let verified provider events move orders, catch the events you missed, keep an append-only ledger and match every payout to the cent.
- Required 2
- Recommended 7
Required
Let provider events move the order
PAY-18Fulfil, grant access or mark a refund only when a verified provider event or API read says the money moved. Map each event type to one order transition.
Give each person the smallest role in the provider dashboard
PAY-24Give every person their own login to the payment provider's dashboard, with two-step login and the smallest role that does their job. Alert on every change to payout bank details or team members.
Recommended
Wait for payment methods that settle later
PAY-19Keep an order in a processing state while a slow payment method settles, and fulfil only on the final success event.
Keep a mandate for every bank debit
PAY-60Before you debit a bank account, show the mandate text, store its acceptance with the time and text version, and email the payer a copy. Notify the payer before each debit.
Sweep for missed events every hour
PAY-20Run a job at least every hour that lists recent payments and refunds at the provider and fixes orders whose state disagrees.
Record every money movement in an append-only ledger
PAY-21Write each charge, refund, fee, dispute and payout as a new ledger row with the provider's object ID, and never update or delete a row.
Reconcile every payout
PAY-22Within 2 business days of each provider payout, match it to the transactions it contains, to your ledger and to the bank statement.
Alert when payments start failing
PAY-23Alert when the payment success rate, failed webhook deliveries or the time since the last successful payment leave their normal range.
Pin the provider's API version
PAY-25Set the provider's API version in your code and on each webhook endpoint, and keep both the same. Upgrade it on purpose after the tests pass on the new version.
Read this with
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/payments/payment-events-and-reconciliation">Agent Wranglers payments and billing playbook</a>. In code you write, add a comment next to it with the same link.