Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



5 Commits

Repository files navigation


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.


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/'
2. In 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 runserver
4. Now open the given URL in Browser e.g '' 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


PayKun Payment Gateway Integration Python Web Sample Kit







No releases published


No packages published