I am trying to debug invoicing issue by checking each stage for variables / objects with very basic approach…
I have the following code
$capOrder = $payment->getOrder();
$capTransID = $capOrder->getPayment()->getLastTransId();
if(!empty($capTransID )){
Mage::throwException(Mage::helper('paygate')->__('zaffar_checking for trans ID. its not EMPTY'));
}
My output for this looks like
zaffar_checking for trans ID. its not EMPTY
I want to echo the value of $capTransID too with my custom error message…like
zaffar_checking for trans ID. its not EMPTY–value is XXXX
how can I do it?? I am unable to find a way to combine / concatenate variable with error message..
Change this to