Skip to main content

SDK resmi Walletku Payment Gateway (server-side): create payment QRIS/VA/e-wallet/cstore, refund, disbursement, vault, sub-merchant, verifikasi webhook.

Project description

walletku-sdk (Python)

SDK resmi Walletku untuk backend Python ≥ 3.9 — stdlib saja.

PENTING: memegang apiSecret — hanya untuk server, bukan mobile/frontend.

Instalasi

# dari registry (bila tersedia) …
pip install walletku-sdk
# … atau langsung dari sdist resmi:
pip install https://docs.walletku.net/sdk/files/walletku_sdk-1.0.0.tar.gz

Pakai

import os
from walletku import WalletkuClient, verify_webhook

wk = WalletkuClient("MID-000001", os.environ["WALLETKU_API_SECRET"],
                    base_url="https://sandbox-pay.walletku.net")
pay = wk.create_payment({"referenceId": "INV-001", "amount": 150000,
                         "paymentMethod": "qris"}, external_id="INV-001")

# webhook — verifikasi atas RAW BODY (bytes), jangan re-serialize
ok = verify_webhook(request.get_data(), request.headers["X-Webhook-Signature"],
                    request.headers["X-Webhook-Timestamp"],
                    os.environ["WALLETKU_WEBHOOK_SECRET"])

Test vector resmi: https://docs.walletku.net/sdk/files/test-vectors.json · Dokumentasi: https://docs.walletku.net

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

walletku_sdk-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

walletku_sdk-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file walletku_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: walletku_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for walletku_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9d41bdd3916b0a0b0eb8de7336a919ecad59c7375b1f7702442d7138d8209565
MD5 8b43499182bee64f49b30ab347eb61fd
BLAKE2b-256 55860598aa75a177851c7d758b4c636b394d3c838f4cebd0376ade9d0663e753

See more details on using hashes here.

File details

Details for the file walletku_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: walletku_sdk-1.0.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.9.25

File hashes

Hashes for walletku_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 092a9d5271c673ead36f0a61adf25f8cbb4714006027b9f7e641229cc7ef9ffb
MD5 f270497b6662f571ad96be8da177260f
BLAKE2b-256 ab3c56ae454f99200ac0503e65f7bf362a1d02e5f9362bc7eb4dcb421b6dda5b

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