dongnaoxia0927 2013-05-08 15:59
浏览 68

将订单ID发送到Authorize.net而不是Magento中的交易ID

I'm using the authorize.net module in Magento 1.7 to process credit card transactions. Right now, the transaction ID is sent, not the order number. Is there any way to send the Order number instead?

Would I change ->setLastTransId($response->getTransactionId()) to getOrderID on line 1367 of app/code/core/Mage/Paygate/Model/Authorize.net?

Of course, I wouldn't change the core files, I'd copy it to local first.

  • 写回答

1条回答 默认 最新

  • duanqiao1961 2013-05-14 21:09
    关注

    It looks like currently the Authorize.Net payment method in Magento Community Edition 1.7 sends the order increment Id number (What is typically considered the order number) to the Authorize.Net gateway in the XInvoiceNum field. See lines 1154 to 1156 in app/code/core/Mage/Paygate/Model/Authorizenet.php:

        if ($order && $order->getIncrementId()) {
            $request->setXInvoiceNum($order->getIncrementId());
        }
    

    One possible way to get more order information into Authorize.Net from Magento is to use Authorize.Net's CIM (Customer Information Manager) version of the gateway, along with a Magento payment method such as ours:

    http://www.storefrontconsulting.com/authorize-net-cim-saved-credit-cards-extension-for-magento/

    评论

报告相同问题?

悬赏问题

  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改