php - Send Order ID to Authorize.net Instead of Transaction ID in Magento -


i'm using authorize.net module in magento 1.7 process credit card transactions. right now, transaction id sent, not order number. there way send order number instead?

would change ->setlasttransid($response->gettransactionid()) getorderid on line 1367 of app/code/core/mage/paygate/model/authorize.net?

of course, wouldn't change core files, i'd copy local first.

it looks authorize.net payment method in magento community edition 1.7 sends order increment id number (what typically considered order number) authorize.net gateway in xinvoicenum field. see lines 1154 1156 in app/code/core/mage/paygate/model/authorizenet.php:

    if ($order && $order->getincrementid()) {         $request->setxinvoicenum($order->getincrementid());     } 

one possible way more order information authorize.net magento use authorize.net's cim (customer information manager) version of gateway, along magento payment method such ours:

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


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -