Skip to content

gantulu/tokopay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeFactor Npm package monthly downloads

Tokopay Client for Node Js

This library is the abstraction of tokopay API for access from applications written with server-side Javascript.

NPM

Instalasi

npm install tokopay

atau

yarn add tokopay

Penggunaan

Dapatkan Merchant ID dan Secret Key Anda di tokopay Dashboard.

const tokopay = require('tokopay');
const client = new tokopay("YOUR MERCHANT ID","YOUR SECRET");

Informasi Akun

const createOrder = await client.info();

Membuat Simple Order

const createOrder = await client.simpleOrder(refId, metode, nominal);

Note:
RefID adalah kode transaksi unik kamu yang di generate secara acak
Metode adalah Kode dari Metode Pembayaran, Bisa dilihat di Docs Tokopay.

Tarik Saldo

const createOrder = await client.tarikSaldo(nominal);

MIT

Author

Ari Padrian

About

Tokopay API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published