1.0.5 • Published 3 years ago

zibal-platform v1.0.5

Weekly downloads
16
License
ISC
Repository
-
Last release
3 years ago

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

  1. Install Module using npm or yarn
    npm install zibal-platform --save
  2. Configure Module

    const ZibalPlatform = require("zibal-platform");
    
    
    const zibalPlatform = new ZibalPlatform({
        token: "YOUR_API_TOKEN" // Enter your API Token Here
    })
  3. 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.

  1. Done
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago