Skip to content

Further improvements to our third-party payment processor flow.#639

Merged
MelissaAutumn merged 4 commits intomainfrom
features/458-further-paddle-improvements
Mar 16, 2026
Merged

Further improvements to our third-party payment processor flow.#639
MelissaAutumn merged 4 commits intomainfrom
features/458-further-paddle-improvements

Conversation

@MelissaAutumn
Copy link
Member

Related issue #458

  • Brings back successUrl and the backend route
  • If the payment type was Paypal (or another pop-up window based type) then redirect them to a window.close template.
  • If the payment was not a pop-up window based type simply redirect them.
  • Added and enhanced plenty of structural window timeouts -.-.

I discovered a weird issue with new accounts and the csrftoken, but I need to test on stage to make sure I'm not chasing a weird dev issue.

* Brings back successUrl and the backend route
* If the payment type was Paypal (or another pop-up window based type) then redirect them to a window.close template.
* If the payment was not a pop-up window based type simply redirect them.
* Added and enhanced plenty of structural window timeouts -.-.
@MelissaAutumn MelissaAutumn self-assigned this Mar 12, 2026
Copy link
Contributor

@davinotdavid davinotdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the tests that seems to be require updating, lgtm!

@MelissaAutumn MelissaAutumn marked this pull request as draft March 12, 2026 20:21
…nd remove the dev only call for checking paddle directly.
@MelissaAutumn
Copy link
Member Author

Okay tests are fixed, coverage of the code isn't ideal but I need to look into effective ways of testing session data in the future...

I've also refactored how the complete and polling functions work, so dev should work almost exactly like stage/prod.

Copy link
Contributor

@davinotdavid davinotdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! I've tested locally with the PayPal Sandbox account in 1Password, and with the normal card payment and it works well 🎉

@MelissaAutumn MelissaAutumn merged commit 7c16ec7 into main Mar 16, 2026
8 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.

2 participants