Merchant Portal services API
Payment SRED - Process card-present SRED payload via DecryptX and TECS XML gateway
Changed onProcesses a card-present SRED payload by decrypting device data via DecryptX API, then authorizing via TECS XML gateway.<br>
<b>Flow:</b><br>
- Decrypt device payload via DecryptX API (partnerId, partnerKey, deviceType, devicePayload)<br>
- Extract PAN (12-19 digits, Luhn-valid), EXPY (MMYY), ServiceCode<br>
- Build and send TECS XML authorization request<br>
- Parse and return response with SRED data<br>
Required role for operation: BO_VIRTUAL_TERMINAL or VIRTUAL_TERMINAL.<br> Create MPauditlog record with event type : PaymentSred (36).<br>
Transaction ID is generated automatically as YYYYMMDDhhmmss.<br> TX-Origin is set to 2 for SALE, 5 for PRE-AUTH.<br> CVC2 = ServiceCode from decrypted payload.<br>
Supports authentication with Bearer token.<br>
post/public/paymentSred
Request
- Base URLhttps://test.tecs.at/merchantservices
- URLhttps://test.tecs.at/merchantservices/public/paymentSred
- AuthHTTP bearer
Request body
Example request
{
"terminalId": "88092010",
"currency": "EUR",
"amount": 1234,
"txtype": "SALE",
"devicePayload": "<SRED_PAYLOAD_FROM_DEVICE>",
"password": "testPWD"
}Response
Successful operation
Example response
{
"responseCode": "00",
"responseMessage": "Approved",
"transactionId": "20251008160321",
"terminalId": "88092010",
"dateTimeTx": "20251008160321",
"merchantId": "123456789012345",
"acquirerName": "TECS Offline",
"cardType": "MASTERCARD",
"sred": {
"panMasked": "541333******3537",
"expDate": "1027",
"serviceCode": "201",
"device": "IDTECH",
"serial": "1234567890",
"mode": "SRED"
}
}Changes
- info
endpoint added
- info