Jump to content


.Net Component.

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

#1 Stryker



  • Members
  • Pip
  • 3 posts

Posted 16 February 2003 - 10:23 AM

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?

#2 TerryJohnson



  • Members
  • PipPip
  • 10 posts

Posted 18 February 2003 - 10:58 AM

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

#3 Stryker



  • Members
  • Pip
  • 3 posts

Posted 18 February 2003 - 11:22 AM

Thanks for your help guys I got it to work.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users