Skip to main content

AutoCash payments gateway lib

Project description

AutoCash

PyPI 0.1

مكتبة 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)

# إنشاء رابط دفع ل OKX
okx_link = autocash.create_okx_payment_link(amount=100, extra="username")
print("OKX Payment Link:", okx_link)

# إنشاء رابط دفع ل Binance
binance_link = autocash.create_binance_payment_link(amount=100, extra="username")
print("Binance Payment Link:", binance_link)

# إحضار بيانات العملية
status = autocash.get_payment_status(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)

# التحقق من عملية دفع تلقائيا OKX
check = autocash.check_okx_payment(amount=100, txid="معرف العملية", extra="username")

# التحقق من عملية دفع تلقائيا Binance
check = autocash.check_binance_payment(amount=100, txid="معرف العملية", extra="username")


#تكون check من نوع dict و تحتوى على بيانات كالمثال التالى :
"""check = {
"status":true,
"message":"تم إكمال عملية الدفع بنجاح بمبلغ 60 جنية .",
"key": "معرف العملية"
}"""

# الحصول على معلومات لوحة تحكم
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.3.tar.gz (2.9 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.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autocash-0.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for autocash-0.3.tar.gz
Algorithm Hash digest
SHA256 45645a0078fe50f0f90fdb2c9831f22b16e597fea6d76a9296d2b57b2617f3c4
MD5 5a054539a837c9b95734958e2eb3d9aa
BLAKE2b-256 78a25ee38313ca0e36d1da49917b8c07e91b8d8463dfbfb3a06be77db5252047

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autocash-0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for autocash-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 11756f0133c596c77c0f7409ba8156cd794826b60debeae456b6cc49de89482c
MD5 77119f2b8a6ac9ba09232bc904a88417
BLAKE2b-256 4d752657ef2043aee32c35aaf9b0e71800947cd1c2529c61fa5025c5269a4f04

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