Receipts
Do you need to create a terminal receipt? Then read more here...
Currently we deliver a simple formatted text version of a terminal receipt. This is suitable for printing on a receipt printer. You can adjust the width in characters to center the receipt on your paper.
We are working on a pdf version as well.
Go to the receipt endpoint and put in your charge or refund id
and get in return the receipt.
Create your own terminal receipt
You can also create your own receipt, by fetching the data from Vibrant and format yourself, this is our recomendation in such a case.
It is though possible to get all data that you need from the Charge
object under paymentMethodDetails
.
Your receipt should include:
Terminal id
✅
Transaction amount
✅
Date and Time
✅
Unique transaction id
✅
Status (success/failed)
✅
Card brand (visa/mastercard)
funding (credit/debit)
MaskedPan / last 4
read method (contactless)
auth code
auth response code
Create your own refund receipt
In order to create your own reciepts for a refund, take that refundId
from the refund object and fetch that Charge.
From there you can create the exact same terminal receipt as mentioned above - you just need to state that it is a refund, not a sale 👍
Last updated