Jump to content


Photo

donate via URL response.redirect


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

#1 knowlton

knowlton

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 09 January 2010 - 10:58 AM

When I click on a button on my form I want to redirect to the appropriate paypal URL for donations.

May I have some same syntax for building the URL from scratch?


NOTE: I am currently doing this for my "Add to Cart" button in this manner:

string paypalurl = "https://www.paypal.com/cgi-bin/webscr?cmd=_cart&upload=1&business=syndi@spatzgear.com&lc=USA&" + itemnames + amounts + quantities + "currency_code=USD&no_shipping=2&shopping_url=http://www.spatzgear.com/shop.aspx&cancel_return=http://www.spatzgear.com/shop.aspx&target='_self'";

Response.Redirect(paypalurl);




I simply want to do the same kind of thing, but for a DONATE button.


Many thanks for your kind attention.


Tom

#2 nds_webdesign

nds_webdesign

    Junior Member

  • Members
  • 159 posts

Posted 02 March 2010 - 01:06 AM

You would want to use something like this:

string paypalurl = "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&item_name=donate&business=youremail@domain.com&amount=1.00¤cy_code=USD";

Response.Redirect(paypalurl);

You just have to change the variables in the URL to apply to donations instead of a shopping cart.

You can check out the variables here.
Nate

www.ndswebdesign.com

#3 tifenni

tifenni

    Newbie

  • Members
  • Pip
  • 0 posts

Posted 16 August 2012 - 09:49 PM

To see a http://www.mmolive.com/ and http://www.mmohome.com/ world in a granda of stand.And a heaven in a wild flower.Hold infinity in the palm your hand and eternity in an hour.
To see a http://www.mmolive.com/ and http://www.mmohome.com/ world in a granda of stand.And a heaven in a wild flower.Hold infinity in the palm your hand and eternity in an hour.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users