Skip to main content

Official Python SDK for Hilt's supported merchant contract.

Project description

hilt-sdk

Official Python SDK for Hilt's supported merchant contract.

Source: https://github.com/Hiltpay/hilt-sdk-python

This SDK wraps the same public merchant routes documented on docs.hilt.so:

  • products
  • hosted checkout
  • payments
  • memberships
  • receipts
  • support
  • webhooks

Install

pip install hilt-sdk

If you want a direct wheel instead of PyPI:

pip install https://www.hilt.so/downloads/hilt_sdk-1.0.0-py3-none-any.whl

Or install the direct source distribution:

pip install https://www.hilt.so/downloads/hilt-sdk-1.0.0.tar.gz

Verify a direct-bundle checksum

curl -O https://www.hilt.so/downloads/hilt_sdk-1.0.0-py3-none-any.whl
curl -O https://www.hilt.so/downloads/hilt_sdk-1.0.0-py3-none-any.whl.sha256
sha256sum -c hilt_sdk-1.0.0-py3-none-any.whl.sha256

Example

from hilt_sdk import HiltClient

client = HiltClient(api_key="hk_live_...")

product = client.products.create(
    {
        "product_type": "PAYMENT_LINK",
        "title": "Members lounge",
        "amount_minor_units": 200000,
        "token_mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "merchant_wallet": "So1anaMerchantWallet1111111111111111111111111",
        "delivery_type": "REDIRECT",
        "delivery_value": "https://example.com/welcome",
        "membership_config": {
            "enabled": True,
            "platform": "CUSTOM",
            "identity_type": "WALLET",
            "identity_required": False,
            "renewal_mode": "MANUAL",
            "billing_interval_days": 30,
            "grace_period_days": 3,
        },
    }
)

print(product["id"], product["slug"])

Quick start

  1. Launch one real product in the Hilt app first.
  2. Create an API key for backend automation.
  3. Use the SDK to read or create the same product from your own system.
  4. Switch longer-running automation to Hilt webhooks.
  5. Use one tiny live payment before real traffic.

Auth surfaces

For most merchant routes, configure either:

  • api_key for server-to-server merchant automation
  • bearer_token for dashboard-session tooling

Webhook endpoint management currently requires a dashboard session token, so the webhook resource uses the configured bearer_token.

What the SDK is best at

  • products and hosted checkout
  • payment confirmation and reads
  • membership lookup, renewal intelligence, and recovery
  • receipt proof, PDF access, and proof sending
  • support tickets and webhook endpoint operations

Build from source

python setup.py sdist bdist_wheel

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

hilt_sdk-1.0.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

hilt_sdk-1.0.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hilt_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1490de189352885e66286bf93e1626d5726893fac0b2f30279a8d2b24eec3281
MD5 e869db50469bb8750411dbd34dd08582
BLAKE2b-256 e9d5e2c40b84e16b8e8fa13a0fc70373c7989b69b8e7d3f4a3337e72483c2b7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hilt_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for hilt_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c369eda714d180c6fec1f7932d2ad0871c8f901dc703a1717a565552ed199c62
MD5 a9fb24236036726fac6b15b72b9fb6cf
BLAKE2b-256 f2b62b8564758c1269d39cc3cdce9a006e1e23829c5b55ba3cdeb74a6816cd58

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