Skip to main content
After payment, Stripe redirects the user back to a URL you control. Set these in the Integration tab of your project.

Success URL

Where users go after a successful payment:
https://yoursite.com/?payment=success&session_id={CHECKOUT_SESSION_ID}
{CHECKOUT_SESSION_ID} is a Stripe placeholder. Stripe replaces it with the actual session ID like cs_live_a1b2c3... automatically.

Cancel URL

Where users go if they close the payment page:
https://yoursite.com/?payment=cancelled

Test URLs

Cuprice supports separate redirect URLs for test mode. When your Stripe key starts with sk_test_, the test URLs are used instead of production URLs. Set both production and test URLs in the Integration tab:
ProductionTest
Successhttps://yoursite.com/?payment=success&session_id={CHECKOUT_SESSION_ID}http://localhost:3001/?payment=success&session_id={CHECKOUT_SESSION_ID}
Cancelhttps://yoursite.com/?payment=cancelledhttp://localhost:3001/?payment=cancelled
If you don’t set redirect URLs, users stay on the Cuprice share page after payment. Always set these to bring users back to your site.