Skip to content

api: billing link returns to /account - #50

Merged
ashutosh091 merged 1 commit into
previewfrom
fix/billing-page-return-link
Nov 14, 2026
Merged

ashutosh091 merged 1 commit into
previewfrom
fix/billing-page-return-link

Conversation

@ashutosh091

Copy link
Copy Markdown
Contributor

Paygate's hosted billing page had no way back to Floodwall. manageBilling now sends return_url: ${origin}/account (the site the reader came from, already checked against ALLOWED_ORIGINS) to POST /v1/billing-link, so the page shows "Back to Floodwall".

Needs the Paygate change (https://github.com/erphq/paygate/pull/39) deployed for the link to appear; until then Paygate ignores the extra field.

manageBilling passes return_url: `${origin}/account` to Paygate's
POST /v1/billing-link, so the hosted billing page shows a "Back to
Floodwall" link. Paygate keeps it only if the origin is in the app's
allowed_origins, otherwise it falls back to the app's default.
@ashutosh091
ashutosh091 merged commit 2be6c37 into preview Nov 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant