'Credit card payment in Django (Python) with RedSys

I need to implement payment with credit card in a Django Project. But, I don't know how to start, and I can't find any information about do it.

  1. What's the best module to do the integration?
  2. The module is well documented? and it has code examples about the correct implementation.

Please, if you know how to do it, help me. I'm collaborating with an ONG and we need to implement this for donations payments.

Thanks. Regards,



Solution 1:[1]

  1. You need a payment provider. A lot of that. The most popular worldwide are Paypal, Stripe, Braintree, others. You can find local providers if you're outside the USA.
  2. You need to check the API documentation of the selected provider. A lot of them have public API docs and links you can find on the landing pages. Usually, this is REST API, so you can use the Requests library to make the integration. Don't forget to write integrational tests!
  3. You need to be compliant with the rules and policies of the selected provider.
  4. You need to have a bank account to make a settlement from the payment provider.
  5. Most providers have a sandbox to test API without having a real production-approved account.

When I said, "You need..." I mean you or your company needs to provide such information or create a needed account(s), bank accounts, etc.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 fanni