feat: open payment modal immediately on relay plan upgrade #64
Reference in New Issue
Block a user
Delete Branch "userAdityaa/caravel:payment-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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