I wanted to know if there is a Django form that can handle payments securely?
I would like users to enter competitions on the site but would only have access to the next page if a payment was successful.
To be clear, I don’t want to ask/store any payment details in my DB but more provide a link to Paypal (or similar) and once payment has gone through, redirect to the newly accessible pages.
This post shows how to accept payments with Stripe.
Then you could redirect the user who paid to certain views based on some condition.
https://djangopackages.org/ is a good resource for finding available packages you can install. If you don’t want to install an unknown package, you can read the code to see what they’re doing and possibly use it as an example toward building your own solution.
There’s a whole grid available for Payment Processing.