I'm having paypal pains, any experts in the house? -


i've been searching high , low decent (up-to-date) paypal class use simple checkout requirements, in absence of such class i've tried roll own:

$paypal = array(     'cmd'=>'_cart',     'business'=>'kung@foo.com',     'no_shipping'=> 1,     'return'=>'http://www.foo.com',     'cancel_return'=>'http://www.foo.com',     'currency_code'=> 'gbp',     'charset'=>'utf-8' );       $i=0;     $cart = array();     foreach ((array)$_session['place_ad']['cart'] $value)     {         $i++;         $cart = array("item_name_$i" => $value['title'], "amount_$i" => $value['price']);         $paypal = array_merge($paypal, $cart);     }  header('location: https://www.paypal.com/cgi-bin/webscr?'.http_build_query($paypal)); 

as far can see, passed paypal correctly, paypal spits out i'm taking gibberish following error:

we have detected problem shopping cart. if problem persists, please contact merchant.

can tell me i'm doing wrong i'm complete novice when comes paypal integration.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

php - HTTP_REFERER woes: How can I allow access to a specific page, only when a visitor has visited another specific page beforehand? -