feat: encourage payment setup for paid relays without making it required #40
Reference in New Issue
Block a user
Delete Branch "userAdityaa/caravel:relay-payments"
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?
Stripe uses pay-in-advance billing: when a subscription starts, an invoice is created immediately. This PR implements the correct flow to match that model.
What changed:
Fixed misleading banner text about when invoices are due
BTC_PRICE_USD_OVERRIDEenv var for local testing when price APIs are unreachableBilling stays the same: users are encouraged to pay but never blocked; relays only mark delinquent after the grace period ends.
Related to #28, #29
There isn't a hard requirement for this PR, just included as an optional improvement to encourage payment setup.
This isn't a bad idea, but the wording is a little off — because the invoice hasn't been generated yet we also can't accept payment yet. We can have them set up nwc/stripe, but they can't pay the bill in advance.
Got it, Updating the wordings to:
Updated the image in the PR description with the revised wording.
Sorry, I was wrong about this — I think the default for stripe is to pay in advance. Which means once the subscription is created, a payable invoice will be created as well. So what we should do is:
So, again we encourage the user to pay, but don't require it. When the invoice is delinquent after a grace period, then we mark relays as delinquent.
e6b5d821b0to7696b9e1d4Thanks for outlining the flow clearly. I’ve implemented the necessary changes, and the updated user flow, now includes:
removing "WIP" after some final checking from my side.