YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

get error when sent data item to paypal Options
nemo1112
#1 Posted : Wednesday, December 23, 2009 4:04:30 PM
Rank: Starting Member

Groups: Registered

Joined: 12/23/2009
Posts: 1
Location: Thailand
Hi i get error from this code please help. Thank.
Code:

<h1>PayPal Library</h1>

<form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr" name="paypal_form"/>
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="quantity" value="1" />


<input type="hidden" name="business" value="ginger_1261513156_biz@yahoo.com" />
<input type="hidden" name="return" value="http://localhost:8888/ginger2/index.php/paypal/success" />
<input type="hidden" name="cancel_return" value="http://localhost:8888/ginger2/index.php/paypal/cancel" />
<input type="hidden" name="notify_url" value="http://localhost:8888/ginger2/index.php/paypal/ipn" />


<input type="hidden" name="custom" value="1234567890" />
<input type="hidden" name="item_name_1" value="Green Dress" />
<input type="hidden" name="item_number_1" value="6941" />
<input type="hidden" name="amount_1" value="197" />

<input type="hidden" name="custom" value="1234567891" />
<input type="hidden" name="item_name_2" value="Orange Dress" />
<input type="hidden" name="item_number_2" value="6942" />
<input type="hidden" name="amount_2" value="150" />

<p><input type="image" name="add" src="http://localhost:8888/ginger2/index.php/images/buttons/button_01.gif" border="0" /></p></form>



I got error when use this code don't know why. I have to try change every thing.
I read from this tutorial Paypal Checkout Third Party
Sponsor  
 
nds_webdesign
#2 Posted : Thursday, December 24, 2009 2:48:48 AM
Rank: Junior Member

Groups: Registered

Joined: 10/15/2009
Posts: 159
Location: Omaha, NE USA
Change This:

Code:
<p><input type="image" name="add" src="http://localhost:8888/ginger2/index.php/images/buttons/button_01.gif" border="0" /></p></form>


To This:

Code:
<input type="image" src="http://localhost:8888/ginger2/index.php/images/buttons/button_01.gif" border="0" /></form>


You can not use the PayPal variable "add" without a correct integer value.

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.133 seconds.