ali-toosi / django-pardakht Goto Github PK
View Code? Open in Web Editor NEWDjango app for connecting to Iranian payment gateways.
License: MIT License
Django app for connecting to Iranian payment gateways.
License: MIT License
hey,
im new at payment stuff, and im trying to connect to Saman
gateway using this package.
i did every config you mentioned in REEDME.rst
. but everytime a user create a payment, it return -18 as Token
, and will raise a DuplicateEntryKey
for further payments (because Token is unique and it will set it to -18 for every payment, so its not unique anymore !).
i'm using django 3.0.5
, and wanna test payments on my local machine (127.0.0.1:8000/...)
Where is the problem ? why i cant test my payments ?!
Error in python manage.py migrate
:
$ python manage.py migrate
SystemCheckError: System check identified some issues:
ERRORS:
pardakht.Payment.token: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.
As you make token unique in your model, it seems that it cause conflicts at two points, first when no token is returned from bank and second when bank return an error such -18 as error code.
Making token unique make sense as it really should be unique, but in such exceptions, it need to be handled carefully.
Hi Dear Alireza,
thanks for this great job, django-pardakht is really helpful for implementing Iranian gateways in Django Web Apps :)
I have some kind of issue, i hope you could help me with:
I'm trying to Implement Django-Pardakht gateways in Saleor E-Commerce Software which uses Django-Payments.
Django-Payment supports some backends which described in the docs.
It would be great if django-pardakht could be implemented as one of django-payments variants.
because i don't want to break saleor's payment functionality.
I was wondering if you'd mind helping me through it?
Thanks in Advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.