Skip to main content

Official Python SDK for the Wire payment API

Project description

wirepayment (Python)

Official Python SDK for the Wire payment API.

Install

pip install wirepayment

Quickstart

import wire

client = wire.Client("sk_live_...")

pi = client.payment_intents.create(amount=50000, currency="MNT")  # minor units
print(pi.id, pi.status)

Auto-pagination

for charge in client.charges.list(limit=50):
    print(charge.id)

Webhook verification

import wire

event = client.webhooks.verify(
    request.body,                       # raw bytes
    request.headers[wire.SIGNATURE_HEADER],
    endpoint_secret,
)
print(event.type)

Errors

try:
    client.payment_intents.create(amount=-1)
except wire.WireError as e:
    print(e.code, e.request_id, e.status_code)

License

MIT

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

wirepayment-1.0.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

wirepayment-1.0.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wirepayment-1.0.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wirepayment-1.0.0.tar.gz
Algorithm Hash digest
SHA256 49acb5fa7e4ed3ab8d848fd83f58f3b42f616d0e90303342da395fe515826d5a
MD5 266fa1f5d2a377152a53bce0b19d9b9f
BLAKE2b-256 74e69b6e56e7f8747513443e3a0e2a978f522a15760e7abe2b28a064989e1ca1

See more details on using hashes here.

Provenance

The following attestation bundles were made for wirepayment-1.0.0.tar.gz:

Publisher: release.yml on buildry-wire/wire-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: wirepayment-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wirepayment-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0544d1dc8ff4f37b7853f3f28e0c0ae837ad14f573ccd66e5c7fb8fc78ccdfe9
MD5 59bf5d655e647c4b84a3e2a8ae3c4026
BLAKE2b-256 c9144d68017d880a54e2df1f00ebb587b6407db530bc78a98d4381d939544fea

See more details on using hashes here.

Provenance

The following attestation bundles were made for wirepayment-1.0.0-py3-none-any.whl:

Publisher: release.yml on buildry-wire/wire-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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