#387 — Facade supports payment links configuration in API
Repo: Twill-AI/facade State: open | Status: open Assignee: sparsh-twillpayments
Created: 2025-07-09 · Updated: 2025-07-09
Description
Request
Caused by https://github.com/Twill-AI/facade/issues/344 and blocked by ‘values list’ from https://github.com/Twill-AI/twill-ai-ui/issues/495.
In order to serve https://github.com/Twill-AI/twill-ai-ui/issues/496 we need to:
- Provide API to get tenant-specific settings for sending payment links.
- Keep track of “is configured” state in new
payment_links_configuredflag in tenant settings.
Acceptance criteria
- Facade
/self-management/tenantsAPI supportspaymentlinks_configuredflag (for reading only) in “master” persistence fromtenant.paymentlinks_configuredcolumn. Make sense to cache it in DepsSingleton. - Facade supports new
/tenant/paymentlinks-configAPI with methods:- POST - to receive parts of ‘values list’ from https://github.com/Twill-AI/twill-ai-ui/issues/495 with tenant “branding” information which won’t change between payment links. Logo is taken as SVG code or transformed from PNG/JPG/etc. into Base64 encoded
srcvalue for pictures. All values are persisted in db “master” persistence because requirement below and very probable necessity to show “branding” values in public API-s. If all required values were provided then settenant.paymentlinks_configuredflag in master’s persistence and DepsSingleton. Response should providepaymentlinks_configuredflag as well. - GET - to return these parts together with `paymentlinks_configure
- POST - to receive parts of ‘values list’ from https://github.com/Twill-AI/twill-ai-ui/issues/495 with tenant “branding” information which won’t change between payment links. Logo is taken as SVG code or transformed from PNG/JPG/etc. into Base64 encoded
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets