Skip to content

Digiflazz SDK is a library designed to streamline communication with the Digiflazz service, an Indonesian marketplace for buying and selling digital products. Ideal for top-up websites, the SDK enables seamless integration with Digiflazz's extensive catalog, including game vouchers, mobile pulsa (credit), and other digital goods.

License

Notifications You must be signed in to change notification settings

karyanayandi/digiflazz-sdk

Repository files navigation

Digiflazz Client Library

Installation

pnpm add digiflazz-sdk
# or
npm install digiflazz-sdk
# or
yarn add digiflazz-sdk

API

Create Digiflazz Config

import createDigiflazzConfig from "digiflazz-sdk"

const digiflazz = createDigiflazzConfig({
    username: [your digiflazz username],
    key: [your digiflazz api key]
})

Cek Saldo

const amount = await digiflazz.cekSaldo(
    'prepaid | pasca'
);

Daftar Harga

const priceList = await digiflazz.daftarHarga();

Tiket Deposit

const deposit = await digiflazz.deposit({
    amount: 'nominal',
    bank: 'bank',
    name: 'bank account own name'
});

Transaksi Top Up

const topup = await digiflazz.transaksi({
    sku: 'sku',
    customerNo: 'customer order number',
    refId: 'reference id',
    cmd: 'null | pay-pasca | inq-pasca | status-pasca | pln-subscribe'
    testing: boolean
    msg: 'message'
});

NOTE:

  • inq-pasca: cek tagihan
  • pay-pasca: bayar tagihan
  • status-pasca: cek status tagihan
  • pln-subscribe: cek id pln
  • if the transaction isn't in seller mode dont use cmd.

Webhook (Coming Soon)

Seller Area (Coming Soon)

About

Digiflazz SDK is a library designed to streamline communication with the Digiflazz service, an Indonesian marketplace for buying and selling digital products. Ideal for top-up websites, the SDK enables seamless integration with Digiflazz's extensive catalog, including game vouchers, mobile pulsa (credit), and other digital goods.

Topics

Resources

License

Stars

Watchers

Forks