How to process credit card payments in Django?


Question

I need to accept credit card payments on a site that provides a service outside the U.S. Given that Paypal is not an option, where should I start? anyone knows how I can do this?

1
24
10/8/2018 10:55:45 PM

Accepted Answer

As mentioned in the previous answer, you need a merchant account and a payment gateway.

I'd recommend BrainTree if you're processing enough payments that they'll accept you. They act as both if you want them to. They also have a Python API for processing payments. It will be much easier to set up. I don't know if they accept customers from outside of the US.

PayPal also offers a solution that allows you to process credit card payments without users having to go to the PayPal site. It's called website payments pro, but I think it's only available in the US and the UK.

Otherwise, look at Authorize.Net as a gateway (or shop around) and speak with you bank about a merchant account.

Nothing is built into Django or Python for this.

13
1/14/2019 9:36:53 AM

Stripe has a Python library to accept credit cards without needing a merchant account: https://github.com/stripe/stripe-python

Check out the documentation and FAQ, and feel free to drop by our chatroom if you have more questions.


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon