我在向管理员展示交易ID时遇到问题,我尝试使用以下代码添加交易ID:
$_order=Mage::getModel('sales/order')->load($orderId);
$payment = $_order->getPayment();
$payment = $order->getPayment();
$payment->setTransactionId($yoursetTransactionId)
->setCurrencyCode($order->getBaseCurrencyCode())
->setPreparedMessage($youcomment)
->setParentTransactionId($yoursetTransactionId)
->setShouldCloseParentTransaction(true)
->setIsTransactionClosed(0)
->registerCaptureNotification($BaseGrandtotal);
$order->save();
但是当我尝试在管理面板中查看订单页面中的结果时,它只会添加到评论历史记录中!如何将交易ID添加到付款表?