Голомт Банк
  • E-Commerce
  • WC Payment Plugin
  • IPPOS
  • Instore
  • Card Gateway
  • Instore v2
  • Tokenization
  • Socialpay

›Example code

IPPOS

  • Танилцуулга
  • Workflow
  • Хэрэгцээт файлууд
  • Жишээ код

    • Холболт шалгах
    • Гүйлгээ
    • Буцаалт
    • Өдөр өндөрлөх
    • SocialPay
  • Баримтны шаардлага
  • Web based IPPOS

    • GLMTPOS service суулгах
    • GLMTPOS service specification

    SP630ПОС заавар

    • SP630ПОС-н IPPOS-р ажиллах заавар

IPPOS English

  • Introduction
  • Workflow
  • Required files
  • Example code

    • Check connection
    • Transaction
    • Void
    • Settlement
    • SocialPay
  • Receipt requirements
  • Web based IPPOS

    • GLMTPOS service specification

Settlement

Action to end the day. By calling this action when the store closes, IPPOS will confirm all transactions that day to the bank. In this way, the next day, all the transactions of the day will be transferred to the merchant's account.

Description of Response object

Request objectPurposeDescription
request.operationCodeOperation numberWill send constant 59
request.TerminalIDTerminal IDIPPOS terminal ID given by the bank. Each cash register has a different terminal ID.

C# Sample code

  DualConnector.DCLink dclink = new DualConnector.DCLink();
  DualConnector.ISAPacket request = new DualConnector.SAPacket();
  DualConnector.ISAPacket response = new DualConnector.SAPacket();
  request.OperationCode = 59;
  request.TerminalID = "13133707";
  try
  {
      int res = dclink.InitResources();
      if (res != 0)
      {
          Console.WriteLine("Exception during InitResource: " + dclink.ErrorDescription);
      }
      else
      {
          res = dclink.Exchange(ref request, ref response, 5000000);
          if (res != 0)
          {
              Console.WriteLine("Exception during DCExchange: " + dclink.ErrorDescription);
          }
      }
      dclink.FreeResources();
      if (response.Status == 1)
      {
          Console.WriteLine("Settlement Successful");
          Console.WriteLine("Receipt: " + response.ReceiptData);
      }
      else
      {
          Console.WriteLine("Settlement Failed");
          Console.WriteLine("Error code:" + response.TextResponse);
          
      }
  }
  catch (Exception e)
  {
      Console.WriteLine("Exception during DualConnector: " + e.Message);
  }
  Console.ReadKey();

Description of the Response object

Response objectPurposeDescription
response.statusTransaction statusResponse code of 1 is considered transaction is successful. If the response code is anything else, the transaction is considered unsuccessful.
response.ResponseCodeHostError code.Download full description list from "Required files"
response.ReceiptDataReceipt data.The information of the settlement. Merchant will print and keep the receipt.
← VoidSocialPay →
  • Description of Response object
  • C# Sample code
  • Description of the Response object
Facebook Open Source
Copyright © 2024 Golomt Bank