Question on $transaction variable in smarty template
Hi there-
In your smarty template syntax, you have variables available for a transaction. E.g. "{$transaction.transactedDatetime}".
However, in the API, a transaction is a list off of invoices. I believe this is there in case there are multiple failures on a particular invoice, for instance. I would expect to be able to cycle through transactions in the smarty syntax just like I can with say $items.
Should I be assuming then that $transaction always refers to the last transaction for an invoice, since it's only a single object?
-Ka WaI
Discussions are closed to public comments.
If you need help with Cheddar please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Dean on 02 Oct, 2013 07:49 PM
Ka Wai -- You're correct, that's just the last transaction for an invoice. Did you have use case for needing to cycle through transactions?
2 Posted by Ka Wai Cheung on 03 Oct, 2013 02:34 AM
Hey Dean-
Nope, no use case. Just wanted to know what to expect since the smarty syntax and API have different cardinality on transactions.
-KC
Marc Guyer closed this discussion on 03 Oct, 2013 02:21 PM.