<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Authorize.NET AIM with Multiple Items/Products using PHP? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-NET-AIM-with-Multiple-Items-Products-using-PHP/m-p/15686#M8914</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;SPAN style="color: #434343; font-family: helvetica, arial, verdana, 'ms sans serif', sans-serif; font-size: 14px; line-height: 22px;"&gt;Hi I'm developing a web application and needs to Integrate it with Authorize.NET AIM. I have tested the code provided by Authorize.NET it works fine for Single product. This code has an option to use for line items and is commented by default. I uncommented it and then used it but it only shows a single product processing no line items processing.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #434343; font-family: helvetica, arial, verdana, 'ms sans serif', sans-serif; font-size: 14px; line-height: 22px;"&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Please see the Authorize.NET AIM Sample Code﻿﻿&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&amp;lt;?PHP&lt;/FONT&gt;&lt;BR /&gt;// By default, this sample code is designed to post to our test server for// developer accounts: &lt;A href="https://test.authorize.net/gateway/transact.dll//" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll//&lt;/A&gt; for real accounts (even in test mode), please make sure that you are// posting to: &lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;﻿&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$post_url = "&lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;";﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$post_values = array(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;STRONG&gt;// the API Login ID and Transaction Key must be replaced with valid values&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_login"=&amp;gt; "API_LOGIN_ID",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_tran_key"=&amp;gt; "TRANSACTION_KEY",&lt;BR /&gt;"x_version"=&amp;gt; "3.1",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_delim_data"=&amp;gt; "TRUE",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_delim_char"=&amp;gt; "|",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_relay_response"=&amp;gt; "FALSE",&lt;BR /&gt;"x_type"=&amp;gt; "AUTH_CAPTURE",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_method"=&amp;gt; "CC",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_card_num"=&amp;gt; "4111111111111111",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_exp_date"=&amp;gt; "0115",&lt;BR /&gt;"x_amount"=&amp;gt; "19.99",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_description"=&amp;gt; "Sample Transaction",&lt;BR /&gt;"x_first_name"=&amp;gt; "John",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_last_name"=&amp;gt; "Doe",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_address"=&amp;gt; "1234 Street",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_state"=&amp;gt; "WA","x_zip"=&amp;gt; "98004"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;STRONG&gt;// Additional fields can be added here as outlined in the AIM integration&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;STRONG&gt;// guide at: &lt;A href="http://developer.authorize.net" target="_blank"&gt;http://developer.authorize.net&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$post_string = "";&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;foreach( $post_values as $key =&amp;gt; $value ){ &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$post_string .= "$key=" . urlencode( $value ) . "&amp;amp;"; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$post_string = rtrim( $post_string, "&amp;amp; " );﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$line_items = array("&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;item1&amp;lt;|&amp;gt;golf balls&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;2&amp;lt;|&amp;gt;18.95&amp;lt;|&amp;gt;Y",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"item2&amp;lt;|&amp;gt;golf bag&amp;lt;|&amp;gt;Wilson golf carry bag, &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;red&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;39.99&amp;lt;|&amp;gt;Y",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"item3&amp;lt;|&amp;gt;book&amp;lt;|&amp;gt;Golf for Dummies&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;21.99&amp;lt;|&amp;gt;Y&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;");&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;foreach( $line_items as $value ){ &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$post_string .= "&amp;amp;x_line_item=" . urlencode( $value ); &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;}﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$request = curl_init($post_url);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp;curl_setopt($request, CURLOPT_HEADER, 0);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp;curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp;curl_setopt($request, CURLOPT_POSTFIELDS, $post_string);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp;curl_setopt($request, CURLOPT_SSL_VERIFYPEER, FALSE);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp;$post_response = curl_exec($request);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;curl_close ($request);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$response_array = explode($post_values["x_delim_char"],$post_response);﻿&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;echo "&amp;lt;OL&amp;gt;\n";&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;foreach ($response_array as $value){&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;echo "&amp;lt;LI&amp;gt;" . $value . "&amp;amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/LI&amp;gt;\n";&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$i++;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;echo "&amp;lt;/OL&amp;gt;\n";﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;?&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="3" face="tahoma,arial,helvetica,sans-serif"&gt;&lt;SPAN style="line-height: normal;"&gt;Please help to post mutiple items with Authorize.NET AIM.﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="3" face="tahoma,arial,helvetica,sans-serif"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="3" face="tahoma,arial,helvetica,sans-serif"&gt;thanks in Advance&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2011 05:15:16 GMT</pubDate>
    <dc:creator>spartan</dc:creator>
    <dc:date>2011-08-04T05:15:16Z</dc:date>
    <item>
      <title>Authorize.NET AIM with Multiple Items/Products using PHP?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-NET-AIM-with-Multiple-Items-Products-using-PHP/m-p/15686#M8914</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;SPAN style="color: #434343; font-family: helvetica, arial, verdana, 'ms sans serif', sans-serif; font-size: 14px; line-height: 22px;"&gt;Hi I'm developing a web application and needs to Integrate it with Authorize.NET AIM. I have tested the code provided by Authorize.NET it works fine for Single product. This code has an option to use for line items and is commented by default. I uncommented it and then used it but it only shows a single product processing no line items processing.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #434343; font-family: helvetica, arial, verdana, 'ms sans serif', sans-serif; font-size: 14px; line-height: 22px;"&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Please see the Authorize.NET AIM Sample Code﻿﻿&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&amp;lt;?PHP&lt;/FONT&gt;&lt;BR /&gt;// By default, this sample code is designed to post to our test server for// developer accounts: &lt;A href="https://test.authorize.net/gateway/transact.dll//" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll//&lt;/A&gt; for real accounts (even in test mode), please make sure that you are// posting to: &lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;﻿&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$post_url = "&lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;";﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$post_values = array(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;STRONG&gt;// the API Login ID and Transaction Key must be replaced with valid values&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_login"=&amp;gt; "API_LOGIN_ID",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_tran_key"=&amp;gt; "TRANSACTION_KEY",&lt;BR /&gt;"x_version"=&amp;gt; "3.1",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_delim_data"=&amp;gt; "TRUE",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_delim_char"=&amp;gt; "|",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_relay_response"=&amp;gt; "FALSE",&lt;BR /&gt;"x_type"=&amp;gt; "AUTH_CAPTURE",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_method"=&amp;gt; "CC",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_card_num"=&amp;gt; "4111111111111111",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_exp_date"=&amp;gt; "0115",&lt;BR /&gt;"x_amount"=&amp;gt; "19.99",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_description"=&amp;gt; "Sample Transaction",&lt;BR /&gt;"x_first_name"=&amp;gt; "John",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_last_name"=&amp;gt; "Doe",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_address"=&amp;gt; "1234 Street",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"x_state"=&amp;gt; "WA","x_zip"=&amp;gt; "98004"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;STRONG&gt;// Additional fields can be added here as outlined in the AIM integration&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;STRONG&gt;// guide at: &lt;A href="http://developer.authorize.net" target="_blank"&gt;http://developer.authorize.net&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$post_string = "";&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;foreach( $post_values as $key =&amp;gt; $value ){ &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$post_string .= "$key=" . urlencode( $value ) . "&amp;amp;"; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$post_string = rtrim( $post_string, "&amp;amp; " );﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$line_items = array("&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;item1&amp;lt;|&amp;gt;golf balls&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;2&amp;lt;|&amp;gt;18.95&amp;lt;|&amp;gt;Y",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"item2&amp;lt;|&amp;gt;golf bag&amp;lt;|&amp;gt;Wilson golf carry bag, &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;red&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;39.99&amp;lt;|&amp;gt;Y",&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;"item3&amp;lt;|&amp;gt;book&amp;lt;|&amp;gt;Golf for Dummies&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;21.99&amp;lt;|&amp;gt;Y&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;");&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;foreach( $line_items as $value ){ &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$post_string .= "&amp;amp;x_line_item=" . urlencode( $value ); &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;}﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$request = curl_init($post_url);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp;curl_setopt($request, CURLOPT_HEADER, 0);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp;curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp;curl_setopt($request, CURLOPT_POSTFIELDS, $post_string);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp;curl_setopt($request, CURLOPT_SSL_VERIFYPEER, FALSE);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp;$post_response = curl_exec($request);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;curl_close ($request);﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;$response_array = explode($post_values["x_delim_char"],$post_response);﻿&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;echo "&amp;lt;OL&amp;gt;\n";&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;foreach ($response_array as $value){&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;echo "&amp;lt;LI&amp;gt;" . $value . "&amp;amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/LI&amp;gt;\n";&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$i++;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;echo "&amp;lt;/OL&amp;gt;\n";﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000" size="2" face="'courier new', courier"&gt;&lt;SPAN style="line-height: normal;"&gt;?&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="3" face="tahoma,arial,helvetica,sans-serif"&gt;&lt;SPAN style="line-height: normal;"&gt;Please help to post mutiple items with Authorize.NET AIM.﻿&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="3" face="tahoma,arial,helvetica,sans-serif"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="3" face="tahoma,arial,helvetica,sans-serif"&gt;thanks in Advance&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2011 05:15:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-NET-AIM-with-Multiple-Items-Products-using-PHP/m-p/15686#M8914</guid>
      <dc:creator>spartan</dc:creator>
      <dc:date>2011-08-04T05:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Authorize.NET AIM with Multiple Items/Products using PHP?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-NET-AIM-with-Multiple-Items-Products-using-PHP/m-p/15732#M8937</link>
      <description>&lt;P&gt;Eww. If you're using PHP, use the more PHP-style implementation rather than trying to create XML requests. If you look in your PHP SDK in the doc cubfolder for a file called AIM.markdown (load in Wordpad or equivalent text editor), it'll give you sample code for line items down near the bottom.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2011 06:49:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-NET-AIM-with-Multiple-Items-Products-using-PHP/m-p/15732#M8937</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-08-05T06:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Authorize.NET AIM with Multiple Items/Products using PHP?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-NET-AIM-with-Multiple-Items-Products-using-PHP/m-p/17238#M9652</link>
      <description>&lt;P&gt;tjpride...registered just to tell you how big of a help your post was...I've been pulling what little hair I have out of my head trying to submit multiple items and the method you suggested works so easily.&amp;nbsp; I appreciate it!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2011 17:43:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-NET-AIM-with-Multiple-Items-Products-using-PHP/m-p/17238#M9652</guid>
      <dc:creator>gwaine</dc:creator>
      <dc:date>2011-09-22T17:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Authorize.NET AIM with Multiple Items/Products using PHP?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-NET-AIM-with-Multiple-Items-Products-using-PHP/m-p/17246#M9656</link>
      <description>&lt;P&gt;No problem. I really hate working with XML myself when there's a clean PHP layer to work with instead :&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2011 20:46:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-NET-AIM-with-Multiple-Items-Products-using-PHP/m-p/17246#M9656</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-22T20:46:16Z</dc:date>
    </item>
  </channel>
</rss>

