Skip to main content

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.

Source Distribution

python-ipaymu-0.1.3.3.tar.gz (2.2 kB view hashes)

Uploaded source

Built Distribution

python_ipaymu-0.1.3.3-py3-none-any.whl (5.1 kB view hashes)

Uploaded py3

Supported by

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