A tiny test repo that simulates the Queenie service setup.
Find a file
2024-03-03 16:20:33 -08:00
src/bin add readme and stripe simulator 2024-03-03 16:20:33 -08:00
.gitignore minimal session use example 2024-03-03 15:12:18 -08:00
.rustfmt.toml minimal session use example 2024-03-03 15:12:18 -08:00
Cargo.lock minimal session use example 2024-03-03 15:12:18 -08:00
Cargo.toml minimal session use example 2024-03-03 15:12:18 -08:00
README.md add readme and stripe simulator 2024-03-03 16:20:33 -08:00

What is this?

I'm trying to replicate an issue I'm having with Tower Sessions, where the session seems to be missing data upon initial return from Stripe, but if you manually enter the URL, it works.

How to run

First, run cargo run --bin=stripe &; this will start the "Stripe" service listening on localhost:4001. Then, run cargo run --bin=princess and visit http://localhost:4000/ and click the buttons. At the end, you'll end up at a page at http://localhost:4000/success and see the test data inserted in the initial get of /.

Why is it called "princess"?

Because it's the baby version of Queenie, a small service using the same crates that sends users to Stripe and then receives a redirect from there once a user has successfully paid. I just wanted to get a minimum test case.