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

pip install walletku-sdk        # resmi di PyPI
# alternatif tanpa registry:
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.1.0.tar.gz (3.6 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.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: walletku_sdk-1.1.0.tar.gz
  • Upload date:
  • Size: 3.6 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.1.0.tar.gz
Algorithm Hash digest
SHA256 528b7c528628891c2a90d8a064808be1c43232e94a7bf9535da82257715e13ba
MD5 ee9e96da41254c0c91855128ef5e443b
BLAKE2b-256 df34bae859a89c3513a0611bbb178443d5d9c24d623e4c199b2e4c205bf11888

See more details on using hashes here.

File details

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

File metadata

  • Download URL: walletku_sdk-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dcf0ee1bdfadf3b775166405c354b048fc38362e58111cfc33b52ca3e601096c
MD5 16cda5216f9b9aecd40b4d4750b062da
BLAKE2b-256 97212c4df823a5411828ad8ff791075f3974e2f3351e20ead3c640b4a1a2e876

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