Posted: February 12, 2018 at 6:18 pm
One of the problems with pulling that information is it’s not available for all payment methods, on-site payment methods such as PayPal Pro store that info but offsite payment methods such as Braintree do not.
Would that be difficult to accommodate for in the code? Not really as long as they use the same fields but not all do, either way it’s an inconsistency with the data output that isn’t obvious at first and it’s the kind of detail we take into consideration when adding new shortcodes. It also becomes a little more complicated with the fact that eventually, we would like EE to support the ability to have a completely separate ‘purchaser’ for registrations, we don’t know how that will be integrated into EE yet meaning we could add something to pull the details, then have to completely refactor that code again (again, I’m not saying we would need to but these are the kinds of factors we take into consideration).
So to answer your question, yes it is possible to pull that information into the message system but it is not something we are looking to add to the system at this time. You could write your own custom shortcode to pull the info which will work in your specific scenario but it will take a working knowledge of PHP, OOP and WP. If your comfortable doing so take a look here:
That’s an example of adding various different types of message shortcodes, here is an example of another user adding their own EE_Transaction_shortcode (which is what you would need to add):
Note that neither of the above are supported and are intended as a starting point for adding your own.