Printing Responsibility
The Printing Responsibility feature provides the application that is using the integration with the Getnet’s Payment Application the possibility to take responsibility for printing the establishment’s and customer’s receipts. This allows the application for greater flexibility and the opportunity to add more fields to the receipt.
How to use it
To use this feature, the application must send the parameter allowPrintCurrentTransaction with the value false when using a deeplink for operations that generate receipts (such as payment, refund, or reprint).
As a result, the deeplink returns the automationSlip parameter, a JSON-formatted string containing the receipt fields.
Mandatory Rule: If the application chooses to take responsibility for printing, it MUST print at least the establishment’s receipt. Printing the customer’s receipt remains optional.
AutomationSlip object
The AutomationSlip Object is a JSON-formatted string returned by the Getnet Payment Application when the allowPrintCurrentTransaction parameter is set to false.
It contains all the necessary transaction data (such as merchant details, authorization codes, amounts, and the Getnet logo in Base64) required for the external application to generate and print its own formatted receipts.
Here is an example of the complete automationSlip object:
"automationSlip": {
"getnetLogo": "String in base64",
"sellerName": "Merchant Name",
"sellerAddress": "Merchant Address",
"cuit": "24042277580",
"com": "0000002433",
"aid": "A0000000000031010",
"term": "AR00027M",
"authorizationCode": "013415",
"letterTypeTransaction": "C",
"dateTime": "13/12/22 - 15:25:30",
"cardLastDigits": "4283",
"brand": "VISA",
"receiptCode": "000088",
"amount": "200",
"tip": "100",
"operationType": "DEBIT REFUND",
"cardholderValidationMethod": "AUTHORIZED OR VALIDATED BY ELECTRONIC SIGNATURE",
"callerId": "256",
"operationResult": "0"
}The following table describes each field in the automationSlip object:
| Name | Type | Description |
|---|---|---|
getnetLogo | string | Getnet logo formatted in a String base64. |
sellerName | string | Merchant’s name. |
sellerAddress | string | Merchant’s address. |
cuit | string | Unique document code. |
com | string | Merchant’s seller code. |
aid | string | Terminal AID code. |
term | string | Terminal Code. |
authorizationCode | string | Authorization Code for this receipt. |
letterTypeTransaction | string | Indicates card input technology. |
dateTime | string | Timestamp of the receipt in ISO8601 using UTC. |
cardLastDigits | string | Last 4 digits of the Card. |
brand | string | Card brand. |
receiptCode | string | Identification code printed on receipt. |
amount | string | Value in local currency. |
tip | string | Tip amount. |
operationType | string | Operation Type (e.g., DEBIT REFUND). |
errorMessage | string | Error message if the transaction failed. |
cardholderValidationMethod | string | Validation method used on the transaction (e.g., electronic signature). |
callerId | string | Uniquely identifies and correlates with a specific deeplink request. |
operationResult | string | Indicates whether the transaction was approved: 0 Sale approved, 1 Sale declined, 2 QrCode approved, 3 QrCode declined, 4 Refund approved, 5 Refund declined, 6 Cancel approved, 7 Cancel declined, 8 Pre-authorization approved, 9 Pre-authorization declined. |
Related resources
- Deeplink parameters reference - the
allowPrintCurrentTransactionandautomationSlipfields in full. - Reprint a receipt - trigger a reprint of the last operation.