retire the bunq integration
All checks were successful
Deploy / build-deploy (push) Successful in 3m32s
All checks were successful
Deploy / build-deploy (push) Successful in 3m32s
The webhook is deregistered at bunq and the callback endpoint, its parser, default-deny classifier, dedup ledger and signature check are removed; the code is in git history if a bank feed ever comes back. /financials keeps reading the hand-maintained aggregates file, and sales + shop donations stay live from the order ledger. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
4c49000d46
commit
c31797bd9a
13 changed files with 70 additions and 1694 deletions
|
|
@ -243,26 +243,13 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
|
||||
Server::SetOrdersPath(ordersPath);
|
||||
// The /financials aggregates and the bunq callback that feeds them.
|
||||
// Same derivation convention as the rail marker and the shipping
|
||||
// cache: state hangs off the orders path. The secret is the last
|
||||
// segment of the callback URL and is what enables the endpoint at
|
||||
// all; unset means /api/bunq/* is a plain 404. No bunq API KEY is
|
||||
// ever read here — see Catcrafts.Server-Financials.cpp for why.
|
||||
// The /financials aggregates. Same derivation convention as the rail
|
||||
// marker and the shipping cache: state hangs off the orders path. The
|
||||
// file is written by the owner's tooling and only read here.
|
||||
{
|
||||
Server::FinancialsConfig finCfg;
|
||||
finCfg.publicPath = ordersPath;
|
||||
finCfg.publicPath += ".financials.json";
|
||||
finCfg.seenPath = ordersPath;
|
||||
finCfg.seenPath += ".financials-seen.json";
|
||||
finCfg.rulesPath = ordersPath;
|
||||
finCfg.rulesPath += ".financial-rules.json";
|
||||
if (const char* v = std::getenv("BUNQ_CALLBACK_SECRET"); v && *v) {
|
||||
finCfg.callbackSecret = v;
|
||||
}
|
||||
if (const char* v = std::getenv("BUNQ_CALLBACK_PUBKEY"); v && *v) {
|
||||
finCfg.publicKeyPem = v;
|
||||
}
|
||||
Server::ConfigureFinancials(std::move(finCfg));
|
||||
}
|
||||
Server::LoadContent(contentDir, bundleIndex);
|
||||
|
|
|
|||
Loading…
Reference in a new issue