YenePay Python API (Unofficial)
A simple and easily integrable yenepay library for your python code
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) |
Get Payment Link
This is the easiest and quickest way to accept a payment through YenePay. By generating a payment link from your YenePay account manager page, you will be able to share it to your customers via SMS, social media, viber or put the link on your website and allow your customers to pay you online. In order to be able to generate a payment link, You can find more detail on YenePay article.
from yenepaypy.main import Client
client.payment_link(
item_name = '...',
unit_price = '...',
quantity = '...'
)
#on success returns a checkout link that any customer can pay through
Parameter |
Type |
Description |
|---|---|---|
item_name |
string |
Required. a name of the item you are requesting payment for or selling |
unit_price |
string |
Required. the unit price of the item in Ethiopian Birr currency |
quantity |
string |
Required. Quantity of the item to sell |
item_id |
string |
Optional. a unique identifier for the item |
expires_after |
string |
Optional. time until the link expires |
delivery_fee |
string |
Optional. the delivery fee of item to sell |
handling_fee |
string |
Optional. the handling fee on item |
tax_1 |
string |
Optional. first tax of item to sell |
tax_2 |
string |
Optional. secondary tax of item to sell |
discount |
string |
Optional. discount of item to fetch |
success_url |
string |
Optional. url to call on success |
ipn_url |
string |
Optional. ipn url of item to fetch on success |
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’ |
Metadata
Release files for yenepaypy 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yenepaypy-0.1.2.tar.gz | 17.7 kB | Without provenance | Details for yenepaypy-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yenepaypy-0.1.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for yenepaypy-0.1.2-py2.py3-none-any.whl |
Total release size: 34.4 kB
Release files / yenepaypy-0.1.2.tar.gz
| Download URL | yenepaypy-0.1.2.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
365a0c3c89037d593b8e7b243a346be69288e9e1b7e114c2addc7f1969c14e47
|
|
BLAKE2b-256 checksum How to use checksums |
4c9b1b34fdff2467b77694352139405d931b5a9f529e561b4a715be7ff639cf0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.2
|
Release files / yenepaypy-0.1.2-py2.py3-none-any.whl
| Download URL | yenepaypy-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
517ad1dc652d761a9966da105a296ad7bb91f0099455b9c87405446f74f73ab7
|
|
BLAKE2b-256 checksum How to use checksums |
8dd62657a520c141b35b7198550d35505bba817287339977c526749856fa2622
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.2
|
Security for yenepaypy 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.