1.0.5 • Published 3 years ago
zibal-platform v1.0.5
Zibal Platform NPM Module
Here is Zibal Platform's NPM Module to Easily Manage your Wallets and Reports from Zibal Platform.
See Also Zibal IPG
Get Started
- Install Module using
npm
oryarn
npm install zibal-platform --save
Configure Module
const ZibalPlatform = require("zibal-platform"); const zibalPlatform = new ZibalPlatform({ token: "YOUR_API_TOKEN" // Enter your API Token Here })
Make Requests and Have Fun
Creating Wallet
zibalPlatform.createWallet({ name: "TEST_WALLET" }).then(response => { // Success }, error => { // Error })
Get Wallet Balance
zibalPlatform.walletBalance({ id: 100000 // Your Wallet's ID }).then(response => { // Success }, error => { // Error })
Submit Checkout Request
zibalPlatform.walletCheckout({ amount: 10000, id: 10101, bankAccount : "IR060180000000000000020600", checkoutDelay: 1, description: "تسویه بابت حقوق آقای فرهادی" }).then(response => { // Success }, error => { // Error })
Functions createSubmerchant submerchantList editSubmerchant createWallet walletBalance walletCheckout checkoutQueue checkoutReport See Documentation For More Requests.
- Done