auto payments lib, Egypt and Iraq
Project description
AutoCash
مكتبة AutoCash مكتبة استلام مدفوعات تلقائى فى مصر و العراق .
المتطلبات
- Python 3.6 أو أحدث
- مكتبة
requests
التثبيت
لتثبيت المكتبة، استخدم الأمر التالي:
pip install autocash
طريقة الاستخدام
from autocash import AutoCash
# تهيئة المكتبة مع user_id و panel_id
user_id = "YOUR_USER_ID"
panel_id = "YOUR_PANEL_ID"
autocash = AutoCash(user_id, panel_id)
# إنشاء رابط دفع
payment_link = autocash.create_payment_link(extra="username")
print("Payment Link:", payment_link)
# إنشاء رابط دفع ل Payeer
payeer_link = autocash.create_payeer_payment_link(amount=100, callback_link="https://yourcallback.url")
print("Payeer Payment Link:", payeer_link)
# إحضار بيانات العملية
status = autocash.get_payment_status(key="KEY")
#تكون status من نوع dict و تحتوى على بيانات كالمثال التالى :
"""status = {
"amount":"5.00",
"category":"VF-Cash",
"date":"Thu Nov 30 14:43:41 GMT+02:00 2023",
"id":"004952323000",
"phone":"01234567890",
"taken":true,
"user":"uSQ5ho94PQ4a4GreG"
}"""
# التحقق من عملية دفع تلقائيا
check = autocash.check_payment(phone="1234567890", amount=100)
#تكون check من نوع dict و تحتوى على بيانات كالمثال التالى :
"""check = {
"status":true,
"message":"تم إكمال عملية الدفع بنجاح بمبلغ 60 جنية .",
}"""
# الحصول على معلومات لوحة تحكم
info = autocash.get_info()
print("number:", info["number"])
print("rate:", info["rate"])
print("currency:", info["currency"])
# إنشاء رابط إعادة توجيه لاخفاء بيانات رابط الدفع
redirect_link = autocash.redirect(payment_link)
print("Redirect Link:", redirect_link)
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
autocash-0.2.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autocash-0.2.tar.gz.
File metadata
- Download URL: autocash-0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bb029f510159679d6e26495f1198ad46e1ec81256312df6b057068455badbba
|
|
| MD5 |
94057d4e5b278a70b65aa5fd9e103b61
|
|
| BLAKE2b-256 |
3ce88848f3cdbffa6956a310bf101fd71de8106b4c2cc91982302b3ea16c13b4
|
File details
Details for the file autocash-0.2-py3-none-any.whl.
File metadata
- Download URL: autocash-0.2-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd424ef20192b8828842d38e028487f7fb765ae87311be882990456985f67721
|
|
| MD5 |
3ce4c0442a305bd74e7fb2826e8e8881
|
|
| BLAKE2b-256 |
f1820585adddab1945df7e10fbaf12f193468ac6ba327386f47ca704f8d7c3ef
|