Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Integrasi iPaymu

Project description

Python iPaymu

PyPI version PyPI version PyPI version

Koneksi api iPaymu dengan python

Installing python-ipaymu

Install python-ipaymu dengan pip: pip install python-ipaymu

Cek Saldo

from ipaymupython.ipaymu import iPaymu

ipaymu = iPaymu(api_key)

resp = ipaymu.cek_saldo()

result = resp.read()

print (result)

Cek Transaksi

from ipaymupython.ipaymu import iPaymu

ipaymu = iPaymu(api_key)

resp = ipaymu.cek_transaksi(id_transaksi)

result = resp.status

print (result)

Pembayaran

from ipaymupython.ipaymu import iPaymu

ipaymu = iPaymu(api_key)

data = { 
    'product'  : 'Nama Produk', 
    'price'    : '5000', 
    'quantity' : 1, 
    'comments' : 'Keterangan Produk', 
    'ureturn'  : 'http://websiteanda.com/return?q=return', 
    'unotify'  : 'http://websiteanda.com/notify', 
    'ucancel'  : 'http://websiteanda.com/cancel', 
}

resp = ipaymu.pembayaran(data)

result = resp.read()

print (result)

Semua hasil return secara default menggunakan format '''json'''

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-ipaymu, version 0.1.3.3
Filename, size File type Python version Upload date Hashes
Filename, size python_ipaymu-0.1.3.3-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size python-ipaymu-0.1.3.3.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page