1
When implementing PayPal express checkout, like @DanielRoseman said, You will provide PayPal two URLs. A return URL that PayPal will redirect the user to if the user successfully completes payment, and a cancel URL if the user selects cancel and return to website. As long as your webserver supports HTTPS and as long as you implement those two URLs in django, you should be good to go.
Alternatively, if you are doing a front-end integration, you will use PayPal’s v.zero which will return a nonce to your JavaScript that you will then have to pass back to your server to verify.
Source:stackexchange.com