- 28 Aug 2023
- 3 Minutes to read
- Contributors
- Print
- DarkLight
- PDF
Update Notification Message
- Updated on 28 Aug 2023
- 3 Minutes to read
- Contributors
- Print
- DarkLight
- PDF
Overview
SmartRoute interface is used to send payment response messages based on the API communication model described in the Communication Model section.
This message will be sent from SmartRoute to merchant only if merchant has the “Merchant Notification URL” filled. It slightly differs from the regular messages as it consists of a response only, not a request and a response. The response received will be the same as the payment response received in the final step of the redirect payment.
Response Parameters
Parameter | Description |
---|---|
Response.StatusCode required | An alphanumeric value that represents the response code that covers errors generated by the SmartRoute. Appendix A: Redirect Payment Response Codes for descriptive details about Response Codes.
Note: The update notification response codes are the same as the redirect payment response codes. |
Response.StatusDescription required | An alphanumeric value that represents a message describing the response status received from SmartRoute. This parameter will be filled only after a complete execution process using the language specified in the request. This value should be UTF-8 encoded when it is entered into the secure hash generation process.
|
Response.Amount required | A numeric value that contains the purchase amount of the item.
|
Response.CurrencyISOCode required | The numeric value is in ISO format for the currency. The value should be neither character value nor decimal point. For example, 840 for US Dollar, 400 for JOD.
|
Response.MerchantID required | The alphanumeric value represents the unique ID of the merchant at SmartRoute. The SmartRoute operation team provides this value upon merchant enrollment.
|
Response.TransactionID required | The merchant generates the Transaction ID. It represents a unique identifier for the transaction and is alphanumeric which must not include special characters or spaces.
|
Response.MessageID required | An alphanumeric value that represents the action for defined unique numbers as mentioned below:
|
Response.SecureHash required | An alphanumeric value that represents the generated hex-encoded hash using hashing algorithm SHA-2 (256) by concatenating parameters as a single string starting with the merchant’s Merchant Authentication Token. Then all response parameters are appended in alphabetical order based on the parameter’s name, with no separators and no terminating character. Appendix B: Secure Hash – Redirect Payment; for more information, see secure hash generation.
Note: The update notification secure hash is the same as the redirect payment response secure hash. |
Response.AuthorizedCurrencyISOCode conditional | Authorized Currency uses the numeric ISO Code for the payment and not the character value.
Condition: This parameter will be provided back to the merchant if the MCP is enabled for this merchant. |
Response.AuthorizedAmount conditional | A numeric value that contains the total purchase Authorized Amount of the item. The value is in ISO format with no decimal point. For example, 100 for 1.00 USD.
Condition: This parameter will be provided back to the merchant if the MCP is enabled for this merchant. |
Response.GatewayStatusCode optional | An alphanumeric value that represents the gateway response code. This code covers errors generated by the chosen gateway.
|
Response.GatewayStatusDescription optional | An alphanumeric value that represents a message describing the response status received from the chosen gateway using the language specified in the request. After completing the execution process, this parameter will be filled in. This value should be UTF-8 encoded when it is entered into the secure hash generation process.
|
Response.GatewayName optional | This value represents the gateway name that processed the transaction. It can be alphanumeric with special characters like space, ‘@’ and ‘_’.
|
Response.RRN optional | An alphanumeric value that represents a Receipt Reference Number for the current payment transaction. This value will be returned if the value is provided from the gateway.
|
Response.ApprovalCode optional | Approval Code received from Payment Processor such as Visa. The values will be returned in the following case:
|
Response.Token optional | The token that is assigned to the entered card information; responds to a “GenerateToken” flag with the value “Yes”. This parameter is a part of the tokenization parameters; for more information, see Tokenization.
ed1b4173ed604f8fd5fa3cf72a02e27 |
Response.CardExpiryDate optional | The customer’s card expiry date (year) digits that are used in the payment. The format of this parameter should be in the form (YY).
|
Response.CardHolderName optional | The customer’s card number is used in the payment.
|
Response.CardNumber optional | The customer’s masked card number is used in the payment.
|