Last updated:
0 purchases
pythonipaymu 0.1.3.3
Python iPaymu
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'''
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.