feat: open payment modal immediately on relay plan upgrade #64

Merged
hodlbod merged 1 commits from userAdityaa/caravel:payment-update into master 2026-05-07 18:35:25 +00:00
Contributor

Description:

Previously, users who upgraded a relay to a paid plan were only shown a yellow banner nudging them to set up payments. This was easy to miss when scrolled down.

Changes

When a relay is upgraded to a paid plan, the UI now immediately verifies whether the tenant has payment configured through NWC or an active Stripe subscription. If payment is not configured and an open invoice already exists, the Lightning payment dialog is shown instantly, and once it is closed, whether the invoice is paid or skipped, the payment setup modal is triggered automatically. If no invoice exists yet, the payment setup modal opens directly instead. If payment is already configured, no additional action is taken. The same flow has also been applied to new relay creation in RelayNew, which previously missed this handling.

closes #60

### Description: Previously, users who upgraded a relay to a paid plan were only shown a yellow banner nudging them to set up payments. This was easy to miss when scrolled down. ### Changes When a relay is upgraded to a paid plan, the UI now immediately verifies whether the tenant has payment configured through NWC or an active Stripe subscription. If payment is not configured and an open invoice already exists, the Lightning payment dialog is shown instantly, and once it is closed, whether the invoice is paid or skipped, the payment setup modal is triggered automatically. If no invoice exists yet, the payment setup modal opens directly instead. If payment is already configured, no additional action is taken. The same flow has also been applied to new relay creation in RelayNew, which previously missed this handling. closes #60
userAdityaa added 1 commit 2026-05-07 13:50:46 +00:00
hodlbod merged commit a79c43e17e into master 2026-05-07 18:35:25 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coracle/caravel#64