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

donate via URL response.redirect Options
knowlton
#1 Posted : Saturday, January 09, 2010 3:58:26 PM
Rank: Starting Member

Groups: Registered

Joined: 1/9/2010
Posts: 1
Location: Utah
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
Sponsor  
 
nds_webdesign
#2 Posted : Tuesday, March 02, 2010 6:06:21 AM
Rank: Junior Member

Groups: Registered

Joined: 10/15/2009
Posts: 159
Location: Omaha, NE USA
You would want to use something like this:

Code:
string paypalurl = "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&item_name=donate&business=youremail@domain.com&amount=1.00&currency_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.
Users browsing this topic
Guest
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.265 seconds.