#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_configured flag in tenant settings.

Acceptance criteria

  • Facade /self-management/tenants API supports paymentlinks_configured flag (for reading only) in “master” persistence from tenant.paymentlinks_configured column. Make sense to cache it in DepsSingleton.
  • Facade supports new /tenant/paymentlinks-config API 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 src value 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 set tenant.paymentlinks_configured flag in master’s persistence and DepsSingleton. Response should provide paymentlinks_configured flag as well.
    • GET - to return these parts together with `paymentlinks_configure

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets