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

Driving Me Mad - Please help with this Options
deltatango
#1 Posted : Friday, March 19, 2010 5:52:49 PM
Rank: Starting Member

Groups: Registered

Joined: 1/14/2007
Posts: 3
Location: ,
This used to work. When I uploaded it to my client's page, it no longer works!!!

Paypal returns to the page using GET method ALWAYS no matter what the value of RM is. (The form is populated with javascript and it IS filling it in before submitting as the data makes it to paypal)

Does anyone know what could be wrong?

<form action="https://www.paypal.com/cgi-bin/webscr" id="paypalForm" method="post">
<input type="hidden" name="cmd" value="_donations" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="business" value="paypal@paypal.com[removed for safety]" />
<input type="hidden" name="item_name" value="" id="itemName" />
<input type="hidden" name="amount" value="" id="itemAmount" />
<input type="hidden" name="first_name" id="itemFirst" value="" />
<input type="hidden" name="last_name" id="itemLast" value="" />
<input type="hidden" name="address1" id="itemAddress" value="" />
<input type="hidden" name="city" id="itemCity" value="" />
<input type="hidden" name="state" id="itemState" value="" />
<input type="hidden" name="zip" id="itemZip" value="" />
<input type="hidden" name="country" value="USA" />
<input type="hidden" name="phone" id="itemPhone" value="" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="invoice" value="" id="itemInvoice" />
<input type="hidden" name="shipping" value="0.00" />
<input type="hidden" name="tax_cart" value="0.00" />
<input type="hidden" name="notify_url" id="itemUrl" value="http://www.url.domain/folder/notifypage.php" />
<input type="hidden" name="return" value="http://www.url.domain/folder/receiptpage.php" />
<input type="hidden" name="rm" value="2" />
</form>
Sponsor  
 
nds_webdesign
#2 Posted : Wednesday, March 24, 2010 5:32:34 AM
Rank: Junior Member

Groups: Registered

Joined: 10/15/2009
Posts: 159
Location: Omaha, NE USA
I changed your variables in the button form to my account then pulled the headers using Firefox's "HTTP Headers" add-on, and this is what I see in the Headers:

Code:
http://www.ndswebdesign.com/

POST / HTTP/1.1
Host: www.ndswebdesign.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 1205
mc_gross=1.00&protection_eligibility=PartiallyEligible&address_status=unconfirmed&payer_id=UB7R5239Y6C34&tax=0.00&address_street=1+Main+St&payment_date=00%3A19%3A48+Mar+24%2C+2010+PDT&payment_status=Completed&charset=windows-1252&address_zip=95131&first_name=NDS&mc_fee=0.33&address_country_code=US&address_name=NDS+WebDesign%27s+Test+Store&notify_version=2.9&custom=&payer_status=unverified&business=nate%40testingsite.com&address_country=United+States&address_city=San+Jose&quantity=0&payer_email=NDS_1262733472_biz%40ndswebdesign.com&verify_sign=AYPUzMZOFXCa6WI4myHyV.jFVjOCA7mgHmBOBymhnNkkcD71y-P1zXTT&txn_id=42026998DX2177356&payment_type=instant&payer_business_name=NDS+WebDesign%27s+Test+Store&last_name=WebDesign&address_state=CA&receiver_email=nate%40testingsite.com&payment_fee=0.33&receiver_id=P525XUXBQTC3S&txn_type=web_accept&item_name=Test+Donation&mc_currency=USD&item_number=&residence_country=US&test_ipn=1&transaction_subject=Test+Donation&payment_gross=1.00&merchant_return_link=Return+to+Nates+PayPal+Testing+Site&auth=QF9Y_qvPQa_pv4QRrV1OtqANPpOMk7rqGt5rSsdVPAaWBnSxhFLp1Uq4ApNm_CnqDCRFkIynjPD7uc6-wffP9m2rOUIYbv3jFaIGlmxSdTu2d3EMhN8F0gzaYfDreKrN7yMVQrAuf_SqP1gnVr_-7_1bLiuOxzGE9YCQnG
HTTP/1.1 200 OK


That tells me that it posted the variables to the return URL which I set as http://www.ndswebdesign.com/ I did however remove the following line of code:

Code:
<input type="hidden" name="upload" value="1" />


The Upload command is only needed with the _cart cmd not the _donations cmd. That may be the issue. Try removing that.

Also you may want to change:

Code:
<input type="hidden" name="phone" id="itemPhone" value="" />


Use the "night_ phone_a", "night_ phone_b", "night_ phone_c" variables instead. Check the below URL:

https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables#id08A6HI0J0VU

That is the PayPal HTML variable reference for prepopulating PayPal pages, it has all of the variables on that page you just have to scroll up.

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.224 seconds.