Socket
Socket
Sign inDemoInstall

tokopay

Package Overview
Dependencies
52
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tokopay

tokopay client library for Node Js


Version published
Maintainers
1
Created

Readme

Source

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

Keywords

FAQs

Last updated on 24 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc