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

Void

Refunds of transactions from the customer's card.

Description of Response object

Request objectPurposeDescription
request.operationCodeOperation numberWill send constant 4
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 = 4;
  request.TerminalID = "13133707";
  request.Amount = "20000";
  request.CurrencyCode = "496";
  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("Cancellation Successful");
      }
      else
      {
          Console.WriteLine("Cancellation Failed");
          Console.WriteLine("Error reason:" + 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.TextResponseError descriptionContains an error description when the operation fails.
← TransactionSettlement →
  • Description of Response object
  • C# Sample code
  • Description of the Response object
Facebook Open Source
Copyright © 2024 Golomt Bank