Repository navigation
FinStack 0.2.0
A third payment provider, a way to deploy, and a refund fix that matters for anyone using Paystack or Flutterwave.
Upgrading: run migrations (RefundSubmissions adds refunds.submitted_at and backfills it). If you wrote your own provider adapter, implement findRefund (see Changed).
Added
- Deployment guide (
docs/deployment.md): any Docker host, production configuration, provider webhooks and a go-live checklist. - Render Blueprint (
render.yaml) and a "Deploy to Render" button that creates a sandbox deployment. - Flutterwave provider: hosted checkout, verified webhooks (
verif-hash, in both the v3 and the older default format), refunds, payouts to Nigerian bank accounts through saved beneficiaries, and reconciliation of transactions and transfers. Amounts are converted exactly between FinStack's minor units and Flutterwave's major units. See ADR 0030.
Fixed
- Refunds are never sent twice. A Paystack or Flutterwave refund whose request timed out could be sent again by a retry, refunding the customer twice. FinStack now asks the provider before any resend, lets only one sender act at a time, and never releases a hold on an unclear answer. Existing refunds are backfilled by the migration. See the amendment to ADR 0014.
Changed
- Breaking for custom provider adapters:
PaymentProviderrequiresfindRefund, which returns the refund made with our reference, null only when the provider confirms there is none, and throws when it can't tell. The built-in adapters implement it. - Refund responses include
failureReason, with the provider's own message, as payout responses already did. - The mock provider no longer deduplicates refunds (like Paystack and Flutterwave), and has
lostandunsurerefund modes for testing.
Full changelog: v0.1.1...v0.2.0