Skip to main content

Merchant payment library for wallet API

Project description

Merchant Payment Lib

Python library for merchant payments via wallet API.

Installation

pip install tango-merpay-lib
from merchant_payment import MerchantPaymentService

service = MerchantPaymentService(
    url="https://api.example.com",
    addon_id="your_addon_id",
    country_id="CD",
    api_key="your_api_key"
)

data = {
    "currency": "CDF",
    "merchant_msisdn": "243999999999",
    "msisdn": "243999999999",
    "amount": "1000",
    "pin": "1234"
}

merchant_payment_response = service.do_payment(data)

merchant_payment_status = merchant_payment_response["mapping_response"]["mapping_code"]
merchant_payment_reference = merchant_payment_response["wallet_response"]["txnid"]
merchant_payment_message = merchant_payment_response["wallet_response"]["message"]

if merchant_payment_status != "SUCCESS":
    pass

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

tango_merpay_lib-1.0.1.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

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

tango_merpay_lib-1.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file tango_merpay_lib-1.0.1.tar.gz.

File metadata

  • Download URL: tango_merpay_lib-1.0.1.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for tango_merpay_lib-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bf6ec7354da662cb3a333f5fd461562de74a478401f4fb171357b4638cf13ab9
MD5 22e5738e5ac917a329978b8d8e5819bf
BLAKE2b-256 9de5aaa990544719d34def2642f4a4015e2f313ed09d676e6d4bbf332b303cf1

See more details on using hashes here.

File details

Details for the file tango_merpay_lib-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tango_merpay_lib-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fcc772f9cf44bb70f88203f5102941ef7304508594cdbf59ee8dc7665d20fff5
MD5 36931cfaa4fdd03df5a9f19c3bb5dc8d
BLAKE2b-256 06f5b767145c162f7b2aab064dafd661839a36001090c1b89158a5e8b5946d90

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