Skip to main content

FamAPI Verify API — Python SDK

Project description

FamAPI Verify — Python SDK

pip install famapi-verify

Usage

Payment API (api_key from dashboard)

from famapi import FamAPI

client = FamAPI(api_key="your_api_key_here")

payment = client.create_payment(amount=100)
print(payment["purpose"], payment["qr_image_url"])

result = client.verify_payment(purpose=payment["purpose"])
print(result["status"], result["message"])

client.complete_payment(purpose=payment["purpose"])

payments = client.get_payments(status="pending", limit=10)

time_info = client.get_payment_time(purpose=payment["purpose"])

csv = client.export_payments()

Session API (access_token from browser dev tools)

Get your Supabase access_token from your browser's Application → Local Storage → sb-kqmmbjtlaixncqlldgqo-auth-token → copy the access_token field.

client = FamAPI(session_token="your_supabase_access_token")

data = client.get_dashboard_data()
usage = client.get_dashboard_usage()
logs = client.get_webhook_logs()

client.create_subscription(plan="starter")
client.verify_subscription(purpose="SUB_...")

status = client.get_gmail_status()
client.disconnect_gmail()

new_key = client.reset_api_key()
result = client.update_settings(webhook_url="https://example.com/hook")

Webhook endpoint

client = FamAPI(webhook_secret="your_webhook_secret")

result = client.handle_webhook_payment_verified(purpose="FAM_...")

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

famapi_verify-0.2.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

famapi_verify-0.2.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file famapi_verify-0.2.0.tar.gz.

File metadata

  • Download URL: famapi_verify-0.2.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for famapi_verify-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b2fee93f5c9ea2233717f45b76049fd4b92debdedf71e502f9af448f273b6d92
MD5 f4e416c382d81d9414e207ab40fc845b
BLAKE2b-256 85d457275cc07ea239e5f97cab9af30f08b7de0d5c3106bdf8b2922aa0beedca

See more details on using hashes here.

File details

Details for the file famapi_verify-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: famapi_verify-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for famapi_verify-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35f00f1954e4cf8c53e573865374ea166b21aba41d7d9959eeecb937eb9022c3
MD5 66fa7fa36d56c87b8519c07eaea21047
BLAKE2b-256 1eae16ddd8b766f84b93de896b49cffa68884e9f0266903d48a4c84936a9bd97

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