Skip to content

Conversation

@Daniel15
Copy link
Contributor

@Daniel15 Daniel15 commented Nov 24, 2025

This is a port of Daniel15#3 from v0.22.0 to the latest develop branch. Unfortunately I can't fully test it since I'm hitting errors when trying to create a new invoice.


Adds a new payment success page that Stripe can redirect to after a successful payment.

  • Split PaymentPortal into several files: PaymentPortalPage and PaymentPortalInvoiceHeader with the reusable parts, and PaymentInvoicePage for stuff that's specific to the current invoice page
  • Add new route for Stripe success_url: https://example.com/payment/{paymentLinkID}/success/{stripeCheckoutSessionID}. Currently the Stripe checkout session ID is not used, but it could be used to load details about the payment.
  • Remove hard-coded localhost success_url and cancel_urls and replace them with proper URLs: success_url goes to the new page, and cancel_url just goes back to the invoice.
Screenshot_20251116_170653

Closes #849

@abouolia abouolia self-requested a review November 25, 2025 19:42
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.

Stripe is hard-coded to return to http://localhost/success on success

1 participant