Receipt Data

This session provides a way to obtain the EMV compliant information that you would include on your own receipt that's provided to the customer. The formatted receipt is XML-based model, a receipt sample can be seen below.

<ReceiptPrintData>
<Line><Text align="center" bold="true" size="Large">CUSTOMER COPY</Text></Line>
<Line/>
<Line/>
<Line/>
<Line><Text align="left">Trans. Ref.: PaymentDevice</Text></Line>
<Line><Text align="left">MID: ******2262</Text></Line>
<Line><Text align="left">TID: ********6201</Text></Line>
<Line/>
<Line><Text align="left">Card Type: MASTERCARD</Text></Line>
<Line><Text align="left">AID: A0000000041010</Text></Line>
<Line><Text align="left">App Label: MasterCard</Text></Line>
<Line><Text align="left">Card No: ************0011</Text></Line>
<Line><Text align="left">Seq: 03</Text></Line>
<Line><Text align="left">Exp: **/**</Text></Line>
<Line/>
<Line><Text align="left">Icc</Text></Line>
<Line><Text align="center" bold="true" size="Large">Sale</Text></Line>
<Line><Text align="left" bold="true" size="Large">Total: 10.50</Text></Line>
<Line/>
<Line/>
<Line/>
<Line><Text align="left">SIGNATURE VERIFIED</Text></Line>
<Line/>
<Line/>
<Line><Text align="left">AUTH CODE: 531739</Text></Line>
<Line><Text align="left" bold="true" size="Large">APPROVED</Text></Line>
<Line/>
<Line/>
<Line/>
<Line/>
<Line><Text align="left">19/02/2020 16:17:39</Text></Line>
<Line><Text align="center">--------------------------------------------</Text></Line>
<Line><Text align="center" bold="true" size="Large">MERCHANT COPY</Text></Line>
<Line/>
<Line/>
<Line/>
<Line><Text align="left">Trans. Ref.: PaymentDevice</Text></Line>
<Line><Text align="left">MID: 2100112262</Text></Line>
<Line><Text align="left">TID: 210011226201</Text></Line>
<Line/>
<Line><Text align="left">Card Type: MASTERCARD</Text></Line>
<Line><Text align="left">AID: A0000000041010</Text></Line>
<Line><Text align="left">App Label: MasterCard</Text></Line>
<Line><Text align="left">Card No: ************0011</Text></Line>
<Line><Text align="left">Seq: 03</Text></Line>
<Line><Text align="left">Exp: 12/25</Text></Line>
<Line/>
<Line><Text align="left">Icc</Text></Line>
<Line><Text align="center" bold="true" size="Large">Sale</Text></Line>
<Line><Text align="left" bold="true" size="Large">Total: 10.50</Text></Line>
<Line/>
<Line/>
<Line/>
<Line><Text align="left">PLEASE SIGN BELOW</Text></Line>
<Line/>
<Line/>
<Line/>
<Line><Text align="left">__________________________</Text></Line>
<Line/>
<Line/>
<Line><Text align="left">AUTH CODE: 531739</Text></Line>
<Line><Text align="left" bold="true" size="Large">APPROVED</Text></Line>
<Line/>
<Line/>
<Line/>
<Line/>
<Line><Text align="left">19/02/2020 16:17:39</Text></Line>
</ReceiptPrintData>

The following table contains XML tags and their detail definitions which were designed to display special types of text

Element Description
<ReceiptPrintData> This element defines the whole receipt data.
<Line> This element defines a new line
<Text> This element defines text/paragraph with normal format
 
Setting the style of an XML element, can be done with the style attribute.

Style attribute Value Description
align

left

right

center

This attribute defines horizontal text alignment for an XML element
bold

true

false

This element defines a bold text for an XML element
size

Small

Medium

Large

This attribute defines text size for an XML element

With the XML based model, the receipt can be converted to different formats using an XSL template. E.g. The receipt is then converted to HTML or A4 page.