In Magento 2, when an order fails to go through because of a credit card failure, the system sends out an email (Payment Transaction Failed Reminder, which can be customized via template). However, there are no variables for the IP of the user who had the failed payment, and none of the common variable names seem to stick, including:
- {{var remote_ip}}
- {{var order.remote_ip}}
- {{var quote.remote_ip}}
- {{var customer.remote_ip}}
- et cetera
Does anyone know how to add this info to this template?