Jump to content


Photo

Payment post return variable issue


  • This topic is locked This topic is locked
No replies to this topic

#1 Rich78

Rich78

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 28 January 2010 - 03:53 PM

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.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users