pandago-nodejs-sdk

1.0.8 • Public • Published

pandago-nodejs-sdk

GetStarted

npm i --save pandago-nodejs-sdk
const Pandago = require('pandago-nodejs-sdk');

const pandago = new Pandago({
  env: 'sandbox', // production
  clientId: CLIENT_ID,
  keyId: KEY_ID,
  privateKey: PRIVATE_KEY, 
});

// Bearer token will be generated when calling the apis.

Submission

await pandago.submitOrder({
  "sender": {
    "name": "Pandago",
    "phone_number": "+6500000000",
    "location": {
      "address": "1 2nd Street #08-01",
      "latitude": 1.2923742,
      "longitude": 103.8486029
    },
    "notes": "use the left side door"
  },
  "recipient": {
    "name": "Merlion",
    "phone_number": "+6500000000",
    "location": {
      "address": "20 Esplanade Drive",
      "latitude": 1.2857488,
      "longitude": 103.8548608
    },
    "notes": "use lift A and leave at the front door"
  },
  "amount": 23.5,
  "payment_method": "PAID",
  "description": "Refreshing drink"
});

Documentations

Readme

Keywords

none

Package Sidebar

Install

npm i pandago-nodejs-sdk

Weekly Downloads

2

Version

1.0.8

License

ISC

Unpacked Size

9.12 kB

Total Files

7

Last publish

Collaborators

  • little78926
  • silvergatedeliveryadmin