Skip to main content

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


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.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

autocash-0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file autocash-0.1.tar.gz.

File metadata

  • Download URL: autocash-0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for autocash-0.1.tar.gz
Algorithm Hash digest
SHA256 5d3aad438fceff093348593612ac2714a287570d9d44008287b2334606fc18cb
MD5 ba8efa41a01dc2ffa77e26ab92b34ebe
BLAKE2b-256 5b3824031baea6945d48bcf71da5bac453c3ccf3c99f949d996ecf4b99f3c522

See more details on using hashes here.

File details

Details for the file autocash-0.1-py3-none-any.whl.

File metadata

  • Download URL: autocash-0.1-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

Hashes for autocash-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ff005a70a57bf57a151b4cd91a13fcfac6bb7156956fd8e95c4067e8f236216
MD5 5e89854cbd9a9dd2695cb358fa390a22
BLAKE2b-256 aa998014f258b10b40a425a906abda5173935b4656ccdc94108797ad694add14

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