Custom Receipts P3

After the transaction has been completed, you are required to provide a payment receipt to both the merchant and the shopper.

Sample Receipt

Actual receipt content varies depending on acquirer and payment method.

1 2 3 4 5

6 7 8



Required Receipt Information

You need to make sure, that your custom receipt contains all the required fields stated below and that you are able to also send receipts for successful refunds.

When building the receipt on your end, do the following both for transaction.merchantReceipt and transaction.customerReceipt:

  1. Add all the merchant information, such as address including country, by iterating over the merchantDetails
  2. Specify the receipt type:MerchantReceipt or CustomerReceipt. For a receipt sent to the merchant, it must clearly state Merchant Receipt
  5. Add all payment related information by iterating over the paymentDetails
  7. TIME and DATE
  8. And finally add all information from processing the transaction by iterating over the clearingDetails
  9. Check if you need to print Tip and Total Amount lines on the receipts via tipLineRequired
  10. Check if you need to print a signature line on the receipt via signatureLineRequired
  11. [optional] SUBJECT

Receipt Format

The receipts are already embedded in the execute transaction response that you receive after a successful transaction. The transaction object provides access to the receipt for both merchant and the customer.

Receipts are only attached if the transaction did not fail, so always make sure to check the transaction and both receipt properties before accessing them.

The the receipt data in P3 looks like this:

"merchantReceipt": {
  "data": {
      "key": "RECEIPT_TYPE",
      "label": "Receipt Type",
      "value": "Merchant Receipt"
      "key": "TRANSACTION_TYPE",
      "label": "Type",
      "value": "Payment"
    "SUBJECT": {
      "key": "SUBJECT",
      "label": "Description",
      "value": "Hey World!"
      "key": "IDENTIFIER",
      "label": "PWID",
      "value": "bf1bda0a0c9611e68a588f955891035b"
      "key": "AMOUNT_AND_CURRENCY",
      "label": "Amount",
      "value": "€1.00"
    "DATE": {
      "key": "DATE",
      "label": "Date",
      "value": "4/27/2016"
    "TIME": {
      "key": "TIME",
      "label": "Time",
      "value": "6:40:27 PM"
    "STATUS_TEXT": {
      "key": "STATUS_TEXT",
      "label": "Information",
      "value": "Please retain receipt!"
  "clearingDetails": [
      "label": "Transaction",
      "value": "217500"
      "label": "Authorization",
      "value": "721100/055700"
      "label": "Merchant ID",
      "value": "100058700"
      "label": "Terminal ID",
      "value": "BAD04568"
  "paymentDetails": [
      "label": "Card",
      "value": "VISA"
      "label": "Account",
      "value": "**** **** **** 0119"
      "label": "AID",
      "value": "A00000000310109999"
      "label": "Entry Mode",
      "value": "Contactless"
  "merchantDetails": [
      "label": "Name",
      "value": "Merchant"
      "label": "Address",
      "value": "Demo Street 12"
      "key": "MERCHANT_DETAILS_ZIP",
      "label": "Zip",
      "value": "12601"
      "label": "City",
      "value": "City"
      "label": "Country",
      "value": "Country"
      "label": "Contact",
      "value": "+49 (170) 1234567"
      "label": "Additional Information",
      "value": ""
  "signatureLineRequired": false,
  "tipLineRequired": false

Can we help you?

If you cannot find your answer, contact us and we'll get in touch with you soon.

© Copyright 2020 Payworks GmbH. Legal.