VendexApp Docs
  • Overview
  • DEVELOPER
    • Cloud API for App
      • Client authentication
      • User
      • Account
      • Transaction
      • Vending machine
      • Payment gateway
    • Cloud API for Sale Point
      • Client authentication
      • Account
      • Transaction
      • Sale point
    • QR Code format
    • Real Time Communication (RTC) API
      • Transaction
Powered by GitBook
On this page
  • Payment received notification
  • Merchant payment confirmation
  • Merchant top-up confirmation
  • Merchant transaction begin session
  • Merchant transaction session end
  • Merchant refund confirmation

Was this helpful?

  1. DEVELOPER
  2. Real Time Communication (RTC) API

Transaction

Payment received notification

This information will be broadcast to the receiver once the transaction is success.

{
   "pn_gcm":{
      "notification":{
         "body":"USD 100.00 received from John Smith"
      },
      "data":{
         "cmd":"transaction_notification",
         "data":"transaction",
         "data_var":{
            "sender":"John Smith",
            "amount":"100.00",
            "currency_code":"USD",
            "created":"2019-10-10T09:30:40.123000Z"
         }
      }
   }
}

Merchant payment confirmation

This information will be broadcast to the receiver once payment is success.

{
   "pn_gcm":{
      "notification":{
         "body":"USD 100.00 paid to Pizza hut - Airport, Vegas"
      },
      "data":{
         "cmd":"payment_notification",
         "data":"payment",
         "data_var":{
            "merchant":"Payment Pizza hut - Airport, Vegas.",
            "amount":"100.00",
            "currency_code":"USD",
            "created":"2019-10-10T09:30:40.123000Z"
         }
      }
   }
}

Merchant top-up confirmation

This information will be broadcast to the receiver once the top-up transaction success

{
   "pn_gcm":{
      "notification":{
         "body":"USD 100.00 top up from Vendex Int. HIA(S001)"
      },
      "data":{
         "cmd":"transaction_notification",
         "data":"add_money",
         "data_var":{
            "merchant":"Vendex Int. HIA(S001)",
            "amount":"100.00",
            "currency_code":"USD",
            "created":"2019-10-10T09:30:40.123000Z"
         }
      }
   }
}

Merchant transaction begin session

This information will be broadcast to the receiver once the transaction session has been initiated (Ex: scan QR code)

{
    "pn_gcm": {
        "data": {
            "cmd": "transaction_notification",
            "data": "begin_session",
            "data_var": {
                "status": "accepted", // accepted or rejected
                "support_remote_selection": true
            }
        }
    }
}

Merchant transaction session end

This information will be broadcast to the receiver once the transaction session has been end.

{
    "pn_gcm": {
        "data": {
            "cmd": "transaction_notification",
            "data": "end_session",
        }
    }
}

Merchant refund confirmation

This information will be broadcast to the receiver once the transaction refund success.

{
   "pn_gcm":{
      "notification":{
         "body":"USD 100.00 refund from Vendex Int. HIA(S001)"
      },
      "data":{
         "cmd":"transaction_notification",
         "data":"refund",
         "data_var":{
            "merchant":"Vendex Int. HIA(S001)",
            "amount":"100.00",
            "currency_code":"USD",
            "created":"2019-10-10T09:30:40.123000Z"
         }
      }
   }
}
PreviousReal Time Communication (RTC) API

Last updated 4 years ago

Was this helpful?