django-payments
django-payments copied to clipboard
less 'gaps' in the documentation
The documentation has some good examples of how to use the module, but it doesn't really show how to integrate it into existing django apps.
Its easy to see some ambiguity in this documentation right here https://django-payments.readthedocs.org/en/latest/usage.html#making-a-payment
Where the code belongs isn't stated, its just an example of how to create an arbitrary payment, no explanation to novices where they should be putting that code, model method? view? signal? Redirect to the payment handling view? do i need to pass context? why / why not?
The installation page is closer to what the docs need.
I ask because it appears that your project is the only python 3 compatible django payments module that supports multiple payment providers, which feels worthy of some effort, ensuring people wanting python 3 django support also deserve well documented payment tools.
Id write better docs myself but I don't really understand the library well enough. Without more docs, or some working examples to compare to, I'm not even sure I'm using the library correctly / as intended, and I don't want to write incorrect / unhelpful docs.
@elwoodxblues, would you like to tackle this one? Your work on docs is outstanding.
Ok, I'll handle this.
Yes the docs are woefully incomplete- easier to read the code than try to understand the docs.
Hello, i'm pretty new for payments in web apps and it's costing to me a lot to understand how to use this great app, there is some kind of example that i can follow? The documentation is not helping me too much, thank you :)
Please take a look at the Saleor repository for a full working store example.
The documentation is very poor, but the app seems great. I will try to see how Saleor works with it. But, just in case, is there a smaller base of code using it available somewhere ?
It would also be helpful to have some documentation on how to add a new payment method to django-payments.
Hi @techdragon did you sorted this out? i mean did you implemented this on an existing project or created some kind of example project? because i'm having the same issue understanding the docs rn
Hey, loudy-art
Have you solved the problem I am facing similar issue.
hi @tohid4n , yes, i created an example for people using MercadoPago which is latin america's most popular payment method.
Here you can see my views.py which is highly commented so you can understand the payment flow that i used. In this case i was receiving form data and after payment was succesful i will send the form.