Skip to main content

A simple and easily integrable yenepay library for your python code

Project description

A simple and easily integrable yenepay library for your python code

image0

help: https://community.yenepay.com/ ## API Reference

Client

Initiates a yenepay client, required for any of the other services of this library https://community.yenepay.com/docs/getting-started/get-your-seller-merchant-code/

from yenepaypy.main import Client

client = Client(merchant_id = '...')

#on success creates a client instance with functions

Parameter

Type

Description

merchant_id

string

Required. Your Merchant id(customer code)

Send Payment To User

Sends money automatically to other users, if you have any problems with getting the values for this function, I suggest you read: https://community.yenepay.com/docs/integration-guide/using-our-api/

sdk core example: https://github.com/YenePay/yenepay.sdk.core.client

from yenepaypy.main import Client

client = Client(merchant_id = '...')
authtoken = "..."
pem_file="C:/.../...."

result = client.send_to(
        pemfile = pem_file,
        authtoken = authtoken,
        amount = '...',
        recieverid = '...',
        payment_text = '...'
  )

#on success returns a string with the grand total and name of the reciever

Parameter

Type

Description

pemfile

string

Required. signature key file location in local disk

authtoken

string

Required. Authoriztion Token string

amount

string

Required. amount of money to be sent

recieverid

string

Required. customer code of the reciever

payment_text

string

Optional. text to be attached with the payment, defaults to ‘Pay’

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

yenepaypy-0.1.2.tar.gz (17.7 kB view hashes)

Uploaded Source

Built Distribution

yenepaypy-0.1.2-py2.py3-none-any.whl (16.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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