|
Rank: Starting Member
Groups: Registered
Joined: 2/16/2003 Posts: 3 Location: ,
|
I am making my own .Net component that will handle multiple currencies. However, the output from the component works fine until I add in the "¤cy_code=" For example:
This Works:
<a href="#" onclick=window.open("https://www.paypal.com/cart/add=1&business=myemail%40hotmail.com+&item_name=MYITEM&amount=126.40&item_number=63&image_url=images%5ctitle.jpg&bn=c1.pp.net-1.1.2002","cartwin","width=600,height=400,scrollbars,location,resizable,status")><img id="dlstResults10__ctl1_C1addtocart2" src="https://www.paypal.com/images/x-click-but22.gif" border="0" style="width:86px;" /></a></P>
This doesn't
<a href="#" onclick=window.open("https://www.paypal.com/cart/add=1&business=myemail%40hotmail.com+&item_name=MYITEM&amount=126.40&item_number=63¤cy_code=CAD&image_url=images%5ctitle.jpg&bn=c1.pp.net-1.1.2002","cartwin","width=600,height=400,scrollbars,location,resizable,status")><img id="dlstResults10__ctl1_C1addtocart2" src="https://www.paypal.com/images/x-click-but22.gif" border="0" style="width:86px;" /></a></P>
Anyone know why?
|
|
Rank: Starting Member
Groups: Registered
Joined: 2/15/2003 Posts: 10 Location: ,
|
I think PayPal only officially supports POST (and/or the GET string might be too long for some browsers) so you could try passing the variables to a script in the pop-up window that executes a POST request with them?
Also, it might be the way & currency_code is handled in the URLencoding - see how it has come out in your message above.
Terry Johnson Scribendi.com
|
|
Rank: Starting Member
Groups: Registered
Joined: 2/16/2003 Posts: 3 Location: ,
|
Thanks for your help guys I got it to work.
|