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
zibalPlatform.createWallet({ name: "TEST_WALLET" }).then(response => { // Success }, error => { // Error })
zibalPlatform.walletBalance({ id: 100000 // Your Wallet's ID }).then(response => { // Success }, error => { // Error })
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