- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Multiple Items AIM
I have been using John Conde class for doing all my ARB transactions.
However, Im using AIM for store orders now and I'm getting an error when I pass multiple items.
He uses this when inserting one item to buy in his class.
'lineItems' => array( 'lineItem' => array( 'itemId' => '1', 'name' => 'vase', 'description' => 'Cannes logo', 'quantity' => '18', 'unitPrice' => '45.00', ), ),
However, I try to insert multiple items like so...
'lineItems' => array( 'lineItem' => array( 'itemId' => '1', 'name' => 'vase', 'description' => 'Cannes logo', 'quantity' => '18', 'unitPrice' => '45.00', ), 'lineItem' => array( 'itemId' => '2', 'name' => 'vase2', 'description' => 'Cannes logo', 'quantity' => '18', 'unitPrice' => '45.00', ), ),
When I run this, I only get the one item (2) on the recipt. Is there another way to do this?
โ05-09-2012 10:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Anyone have any suggestions?
โ05-22-2012 05:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you assign more than one value to the same key ("lineItem") in PHP, all assignments but the last one are ignored. I can't comment on how to do this properly, however - I always just work natively from the Authorize.net classes, which in the case of AIM, are fairly well-documented. Look in the doc folder of your SDK for the file AIM.markdown, it has all sorts of sample code you can use.

โ05-26-2012 05:28 PM

