the only issue I ran into was the script doesn’t run in [PAYMENTS:Credit Card] when {TICKET ID} is passed for whatever reason so you’ll have to throw it somewhere in the [LAYOUT] section.
Pretty sure it does come back, was a while ago now but from memory when I was testing the beta pretty sure they were reversed so seems was part fixed, not end of world.
Pretty sure name is available, sure I have seen name on card receipt before now.
None the less I could be wrong and I will pass that to vehbi. But Im pretty sure he just dumps the return in there. Its different for each of our usa integrations.
There are printer tags for it {PAYMENT DATA:X} But its only usable under [PAYMENTS] So sql is best for building templates especially if you do multiple payments. Or you want it under somewhere else besides where {PAYMENTS} is.
For my case I wanted the info at the top of the receipt and separate from {PAYMENTS} so SQL was the only method.
The second argument is the tag you’d like each line to start with. The third argument is a full-width line/footer () of whatever character specified. If an empty string is specified, no full line/footer is returned.
Remember payment data will only populate After ticket is closed. You can force it by using save ticket action before your print action in the payment processed rule.