Skip to main content

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

  1. Install the module:

      pip install volkeno_paydunya_gateway_py
    
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

volkeno_paydunya_gateway_py-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

volkeno_paydunya_gateway_py-1.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file volkeno_paydunya_gateway_py-1.0.0.tar.gz.

File metadata

File hashes

Hashes for volkeno_paydunya_gateway_py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9101f0c006a8c2debf0e4d5e9a4fd03d3a1dd7e29aa2a86f122c0dbb6c979d91
MD5 5e30865faef2e160727dda2a65a35436
BLAKE2b-256 5b13323a3c0596a507486453362af4c3b5b8917d7721f4a2b68e5a2e38db5bf7

See more details on using hashes here.

File details

Details for the file volkeno_paydunya_gateway_py-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for volkeno_paydunya_gateway_py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad2d3a45e4c765105de22fc7e7b15eaecd6fc56dba8bb0bca94d5668e700b25c
MD5 a66724d5ff2fb1676be96287d4bdceb7
BLAKE2b-256 d172df2a5eab0d21919ead1bb2833fae3d232c50e89d634631c889339b1e10f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page