success_url and cancel_url. Cuprice never sees the payment, so it cannot redirect anyone afterwards. Your checkout does that, usually by handing both addresses to your payment provider when it creates the checkout session.
Defaults
If you set nothing, both addresses point back to your Cuprice share page:success=true and a short notice for canceled=true. For a free plan the success address also carries &free=true.
Use your own pages
To bring buyers back to your site instead:- In the builder, open Integration and expand Redirects.
- Under Production, fill in Success URL and Cancel URL, for example
https://yoursite.com/welcomeandhttps://yoursite.com/pricing. - Click Save changes.
https:// or http://. You can also set them with Update Project (checkoutSuccessUrl and checkoutCancelUrl).
Cuprice then sends these addresses as success_url and cancel_url:
Reaching the success page does not prove that anyone paid. Unlock features when your payment provider confirms the payment, usually through a webhook. See Feature Gating.
Test URLs
The Test fields under Redirects (checkoutTestSuccessUrl and checkoutTestCancelUrl in the API) are saved with the project, but the checkout handoff does not use them: buyers always get the Production addresses. To test, see Test the handoff.