patc Posted September 29, 2011 Posted September 29, 2011 I need to find code to properly pass product "Attributes" as a merchant defined field in the authorize.net payment module. In my authorizenet_aim.php file I have the following already which passes the products themselves, I just need to figure out the fields / code to use to pass the attributes... // Add items ordered to merchants email as merchant defined fields Order - Product model, Product name and Qty ordered MC if (MODULE_PAYMENT_AUTHORIZENET_AIM_EMAIL_MERCHANT == 'True' && MODULE_PAYMENT_AUTHORIZENET_AIM_ADD_ITEMS == 'True') { for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { $x = $i + 1; $data .= '&item' . $x . '=' . urlencode($order->products[$i]['model']) . ' -|- ' . urlencode(substr($order->products[$i]['name'], 0, 255)) . ' -|- ' . urlencode($order->products[$i]['qty']); } } My intended use is that I have 1 product that has 5 different attributes (like 'color', 'size' , 'material' , 'somethingelse ' ,,,) I know I can't be the first person with this issue, but my buddy Google has not helped so far so I'm looking for actual people to help :) ! Quote
lrdezines Posted September 28, 2013 Posted September 28, 2013 any answer to this super helpful question? According to the merchant user guide (#41) you should be able to do this: http://www.authorize.net/support/merchant_guide.pdf Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.