Голомт Банк
  • 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

Check connection

This function should be called when the cash register application starts. By doing this, IPPOS connects the bank and updates the key.

Description of Response object

Request objectPurposeDescription
request.operationCodeOperation numberWill send constant 26
request.TerminalIDTerminal IDIPPOS terminal ID given by the bank. Each cash register has a different terminal ID.
request.AmountTransaction amountTransaction amount. The last 2 digits are fractions.
request.CurrencyCodeCurrencyWill send constant 496.

C# Sample code

  DualConnector.DCLink dclink = new DualConnector.DCLink();
  DualConnector.ISAPacket request = new DualConnector.SAPacket();
  DualConnector.ISAPacket response = new DualConnector.SAPacket();
  request.OperationCode = 26;
  request.TerminalID = "13133707";
  try
  {
      int res = dclink.InitResources();
      if (res != 0)
      {
          Console.Write("Exception during InitResource: " + dclink.ErrorDescription);
      }
      else
      {
          res = dclink.Exchange(ref request, ref response, 5000000);
          if (res != 0)
          {
              Console.Write("Exception during Exchange: " + dclink.ErrorDescription);
          }
      }
      dclink.FreeResources();
      if (response.Status == 1)
      {
          Console.Write("Successful");
      }
      else
      {
          Console.Write("Failed");
          Console.WriteLine("Error reason:" + response.TextResponse);
      }
  }
  catch (Exception e)
  {
      Console.Write("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.TextResponseError descriptionContains an error description when the operation fails.
← Required filesTransaction →
  • Description of Response object
  • C# Sample code
  • Description of the Response object
Facebook Open Source
Copyright © 2024 Golomt Bank