Adding "Yes" in the captureOnly action code is to be used as a separate transaction after Authorization Only payment transaction is processed and successful.

"captureOnly":"yes" :camera: will update a previous Authorization for Capture. Transaction usually follows an Authorization Only transaction within a few hours or days. An authorization usually “falls off” a consumer’s card in about a week making the funds available to the consumer again and thus increasing the “open to buy” amount on the card.

:bookmark: Capture Only Sample Payload

const request = require('request');

const options = {
  method: 'POST',
  url: 'https://api.edgepay-uat.com/payment',
  headers: {
    accept: 'application/json',
    'content-type': 'application/json',
    merchantKey: 'E3DFE3D0150EB516F4E351CE7FE5A2FB799B320BDC5D523B',
    externalReferenceID: '1234561687543132',
    transactionDate: '2023-06-23T18:00:01'
  },
  body: {
    merchantID: '6320340123456900',
    terminalID: '88800000282601',
    paymentDataInput: 'Manualentry',
    amount: '10.00',
    cardNumber: '4111111111111111',
    cardExpirationDate: '0626',
    billingZip: '85284',
    captureToo: 'yes'
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
{
  "result": "A",
  "responseCode": "A0000",
  "responseMessage": "Success",
  "merchantID": "6320340123456900",
  "terminalID": "88800000282601",
  "timestamp": "2023-06-23-11-02-46",
  "securityResult": "A",
  "securityMessage": "APPROVED",
  "authCode": "TAS711",
  "processor": "TSYS",
  "amount": "10.00",
  "maskedAccount": "411111******1111",
  "cardExpirationDate": "0626",
  "transactionID": "CS62434959914344176",
  "avsResponse": "Zip Match(Z) : The nine character ZIP code submitted matches what is on file.",
  "commercialCard": "n",
  "avsCode": "Z",
  "invalidEffectiveDate": false
}

☑️

Authentication Header:

  • merchantKey = this is the API KEY :key: that is associated with your MID provided by GETTRX.
  • externalReferenceId = It is a unique record identifier. Combination of 123456 + UNIX timestamp Sample: 1234561687543122
  • transacationDate = Set to UTC timezone. Format: YYYY-MM-DDTHH:MM:SS
Language
Authorization
Click Try It! to start a request and see the response here!