Skip to content

apriady/digiflazz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Un-Official digiflazz client library for NodeJS

Instalasi

npm install digiflazz atau yarn add digiflazz

Dokumentasi

const Digiflazz = require('digiflazz');
const digiflazz = new Digiflazz('username', 'apikey');

Buyer Area

Cek Saldo
let saldo = await digiflazz.cekSaldo();
Daftar Harga
let harga = await digiflazz.daftarHarga();
Tiket Deposit
let deposit = await digiflazz.deposit(nominal,'BANK','Nama Pemilik Rekening');
Topup & Status Topup
let deposit = await digiflazz.transaksi('sku', 'tujuan', 'ref_id');
Inquiry Pascabayar
let deposit = await digiflazz.transaksi('sku', 'tujuan', 'ref_id', 'CEK');
Bayar Pascabayar
let deposit = await digiflazz.transaksi('sku', 'tujuan', 'ref_id', 'BAYAR');
Status Pascabayar
let deposit = await digiflazz.transaksi('sku', 'tujuan', 'ref_id', 'STATUS');
Webhook
const Digiflazz = require('digiflazz');
const digiflazz = new Digiflazz('username', 'apikey', 'webhookkey');

app.post("/hook", Digiflazz.webhook(digiflazz), (req) => {
  // Anda dapat memproses hasilnya disini
  // result webhook dapat diakses di req.digiwebhooks
});

Seller Area (Coming Soon)

License

MIT

Author

Achmad Apriady