Skip to content

paykun-code/python_web_sample_kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python_web_sample_kit

Python Web Sample Kit

How To Generate Access token and API Secret :

You can find your Merchant Id in Paykun Dashboard.

You can generate Or Regenerate Access token and API Secret from login into your paykun admin panel, Then Go To : Settings -> Security -> API Keys. There you will find the generate button if you have not generated api key before.

If you have generated api key before then you will see the date of the api key generate, since you will not be able to retrieve the old api key (For security reasons) we have provided the re-generate option, so you can re-generate api key in case you have lost the old one.

Note : Once you re-generate api key your old api key will stop working immediately. So be cautious while using this option.

Prerequisite

1. Merchant Id (You can find your Merchant id in your Paykun Admin panel after login)
2. Access Token (Please read 'How To Generate Access token and API Secret :')
3. Encryption Key (Please read 'How To Generate Access token and API Secret :')
4. Python 3.6.0, Django 1.10

Set all the required credentials

1. From the extracted zip open the file 'paykunCheckout/views.py'
2. In views.py file find the method with the name 'payNow'
3. In 'payNow' replace all the dummy detail with real one provided from Paykun
4. Detail like order, customer, shipping, billing should be set by your own.

How to run app

1. Extract downloaded zip
2. From command line navigate to the mysite directory in extracted directory
3. Fire command 'python manage.py runserver
4. Now open the given URL in Browser e.g 'http://127.0.0.1:8000/' and at the end of the url add 'payNow/'
5. Now click on Paynow button and you would see Paykun checkout page

#

In case of any query, please contact to support@paykun.com.

About

PayKun Payment Gateway Integration Python Web Sample Kit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages