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

Payment post return variable issue Options
Rich78
#1 Posted : Thursday, January 28, 2010 8:53:46 PM
Rank: Starting Member

Groups: Registered

Joined: 1/28/2010
Posts: 1
I've discovered an issue with the "return" variable used to provide a url for the client to be returned to after making a payment.

In Safari if this variable is assigned in Javascript, it returns a parse error, which causes the whole script to fail.

Example:

HTML:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="item_number" value="01 - Test Item" />
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="business" value="myaddress@email.com" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="return" value="" />
<input type="hidden" name="item_name" value="" />
<input type="hidden" name="amount" value="50" />

Javascript :

function ProcessFormElements(f){
myform.return.value = "http://www.google.com";
}

Anyone got a fix for this?

Currently this means my site won't be able to support Safari, which is a little rubbish and I'm surprise Paypal use such a poor variable name.
Sponsor  
 
Users browsing this topic
Guest (2)
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 1.9.3 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.055 seconds.