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

›API

E-COMMERCE

  • Танилцуулга
  • Workflow
  • API

    • Ерөнхий
    • Нэхэмжлэх үүсгэх
    • Гүйлгээ шалгах
    • Токен гүйлгээ шалгах
    • Токеноор гүйлгээ хийх
  • Нэхэмжлэх дуудах
  • Push Notification
  • Merchant Redirect
  • Токен үүсгэх
  • Гүйлгээний өндөрлөө хийсэн дэлгэрэнгүй
  • Алдааны коднууд
  • Checksum

    • Тайлбар
    • Samples

E-COMMERCE English

  • Introduction
  • Workflow
  • API

    • General
    • Create an invoice
    • Check transaction
    • Check Token transaction
    • Token transactions
  • Invoice call up
  • Push Notification
  • Merchant Redirect
  • Create a token
  • Details of settlemented transactions
  • Error codes
  • Checksum

    • Definitions
    • Samples

Create an invoice

In order to call up the page for filling Golomt bank’s card information, an invoice number which contains such data as the merchant’s number, transaction number and amount must be created in advance. This invoice number is called as a parameter on the customer’s browser, so the card filling page is displayed

Service workflow

  1. When customer requests for payment, the merchant sends an invoice request with the parameters required for the bank to our../api/merchant/invoice link by using the httpRequest POST method, so the bank system sends response containing the invoice number.
  2. The invoice number is used to call up the bank page on the customer’s browser. The customer’s card information is received and the transaction is made on the bank system.

Function calling path

https://ecommerce.golomtbank.com/api/invoice

Parameters required for merchant request

Json format:

{
  "amount": "string",
  "callback": "string",
  "checksum": "string",
  "genToken": "string",
  "returnType": "string",
  "transactionId": "string",
  "socialDeeplink": "string"
}
ParametersTypeDefinition
amountStringAmount to withdraw from card
callbackStringCallback from customer browser or merchant’s url for redirect
checksumStringchecksum = transactionId +amount + returnType + callback
genTokenStringat Y after the transaction is made get a token representing the card. At N, no token is received.
returnTypeStringPOST GET value of redirecting to merchant’s url. Call app deeplink at MOBILE.
transactionIdStringMerchant's transaction number.
socialDeeplinkStringAt Y, get socialpay deeplink, at N, no

checksum Read the link for details.

genToken: setup to get the token to use for pay or token transaction. Read this link for details.

transactionId: less than 16 digits, containing both digits and letters or just digits.

Response for successful transaction

Json:

{
  "checksum": "9ac76e1ecd0cb23b25cf2dbf976de7bc4d6ff11aebfbd83216aae29be16534b8",
  "transactionId": "P544F455K809",
  "invoice": "d7fb2858-df36-469e-b40d-2815fe9215cf",
  "socialDeeplink": "socialpay-payment://key=VnEWLv/nmtt2LbKjvujI8toXiR1RFt6d7zmGxNvFiHnR5YfNLDu/bx1gHRsK8PjwQbEwxcU1q4fsAPHqHRtrDPdsFQiug/vCFNNux9YbTEg="
}
ParameterTypeDefinition
checksumStringChecksum created by the Bank
checksum = invoice + transactionId
transactionIdStringMerchant's transaction number
invoiceStringInvoice number created on the transaction number
socialDeeplinkStringSocialpay deeplink
← GeneralCheck transaction →
  • Service workflow
    • Function calling path
  • Parameters required for merchant request
    • Json format:
  • Response for successful transaction
    • Json:
Facebook Open Source
Copyright © 2024 Golomt Bank