Volkeno Paydunya Gateway Py is a module to integrate paydunya quickly in your backend
Project description
Volkeno Paydunya Gateway Py
Integrate paydunya quickly in your backend
Detailed documentation is in the "docs" directory.
Quick start
-
Install the module:
pip install volkeno_paydunya_gateway_py
-
EXAMPLE OF PAYMENT WITH REDIRECTION
Import module
from volkeno_paydunya_gateway_py.job import PaymentAR
Initialize payment
MASTER_KEY = MASTER_KEY_OF_YOUR_APP MASTER_KEY = PRIVATE_KEY_OF_YOUR_APP PAYDUNYA_TOKEN = TOKEN_KEY STORE = YOUR APP NAME or your STORE NAME payment = Payment(MASTER_KEY,MASTER_KEY,PAYDUNYA_TOKEN,STORE)
Create an transaction:
payment.payment_create(total_amount,return_url,return_url_parameter)
Example
total_amount = str(total) return_url = YOUR_API_URL+ "/api/payment-status" // You can add one parameter or many parameter in your return url #One parameter return_url_parameter = "/?seller=2" #Many parameter return_url_parameter = "/?seller=2&amount=400" successful, result = payment.payment_create(total_amount,return_url,return_url_parameter) if successful: if 'response_text' in result: url=result['response_text'] return Response({"url":url},status=200) return Response({"message":result},status=400) else: return Response({"message":result},status=400)
Check if transaction is done or not
successful,response = payment.payment_result(token) if successful: //Do this else: //Do that
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for volkeno_paydunya_gateway_py-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9101f0c006a8c2debf0e4d5e9a4fd03d3a1dd7e29aa2a86f122c0dbb6c979d91 |
|
MD5 | 5e30865faef2e160727dda2a65a35436 |
|
BLAKE2b-256 | 5b13323a3c0596a507486453362af4c3b5b8917d7721f4a2b68e5a2e38db5bf7 |
Close
Hashes for volkeno_paydunya_gateway_py-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad2d3a45e4c765105de22fc7e7b15eaecd6fc56dba8bb0bca94d5668e700b25c |
|
MD5 | a66724d5ff2fb1676be96287d4bdceb7 |
|
BLAKE2b-256 | d172df2a5eab0d21919ead1bb2833fae3d232c50e89d634631c889339b1e10f3 |