473,387 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Collecting Payment in ASP.Net via PayPal or similar???

Hi all,

I have an app that allows users to upload files to my site, and then
download them at a later date. Once the files have been safely
uploaded, I wish to give them a download code to retrieve them at a
later date, but only after they've paid for them via PayPal or
similar.

I am unable to use the standard BuyNow PayPal button as the Form
PostBack method only allows one form per page, and although there is a
ASP.Net PayPal control from Component1, I don't think it will do what
I want, as maybe my logic is flawed... :-)

All I want to to is:

1) User uploads files
2) User is sent to PayPal site, pays for upload, and is returned to my
site
3) User receives a download code to retrieve his files

Behind the scenes, I'd be storing the five filenames in a db, along
with an int identifier which would be the download code, along with
another identifier on the same row which identifies the upload code. I
was thinking of sending the upload code along to PayPal as a
querystring parameter on their PageOK attribute, and then have my page
query the db based on the upload code and get the download code and
give it to the user, but that would mean the whole URL and upload code
would be visible in the page's source, so that's no good.

Anyone have any ideas? I'm drawing a blank, or maybe I need to
approach it from another angle... Maybe the user needs to register so
I can keep track of their downloads... Trying not to do that as I
don't want to run afoul of any data privacy laws...

Kind regards,

Mike K.
Nov 17 '05 #1
1 2565
You can create a hyperlink button which has all the variables as a
querystring instead of using a form.

https://www.paypal.com/cgi-bin/websc...dd=1&business=
.....etc

you can create as many links on a page that way. It works exactly like the
form post method.
In ASP.NET I to build a string a set the NavigateURL property to set the
link for each hyperlink.

"Mike Kingscott" <mi**@kingscott.f9.co.uk> wrote in message
news:7d*************************@posting.google.co m...
Hi all,

I have an app that allows users to upload files to my site, and then
download them at a later date. Once the files have been safely
uploaded, I wish to give them a download code to retrieve them at a
later date, but only after they've paid for them via PayPal or
similar.

I am unable to use the standard BuyNow PayPal button as the Form
PostBack method only allows one form per page, and although there is a
ASP.Net PayPal control from Component1, I don't think it will do what
I want, as maybe my logic is flawed... :-)

All I want to to is:

1) User uploads files
2) User is sent to PayPal site, pays for upload, and is returned to my
site
3) User receives a download code to retrieve his files

Behind the scenes, I'd be storing the five filenames in a db, along
with an int identifier which would be the download code, along with
another identifier on the same row which identifies the upload code. I
was thinking of sending the upload code along to PayPal as a
querystring parameter on their PageOK attribute, and then have my page
query the db based on the upload code and get the download code and
give it to the user, but that would mean the whole URL and upload code
would be visible in the page's source, so that's no good.

Anyone have any ideas? I'm drawing a blank, or maybe I need to
approach it from another angle... Maybe the user needs to register so
I can keep track of their downloads... Trying not to do that as I
don't want to run afoul of any data privacy laws...

Kind regards,

Mike K.

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Lunchbox G4 | last post by:
I am working on a site, and the people its for are asking about a way of collecting money online. Doing an onsite shopping cart is not a possibility right now, so I'm looking towards PayPal (or...
5
by: Vinod | last post by:
Hi I am having a payment website which needs to be integrated, i am having the following code which is not working fine. I am having the following script and my notifyurl is not working i...
4
by: Mark | last post by:
Hi all, I have an ASP.NET application which I use to call paypal. I pass in the success URL as http://www.somedomain.com/success.aspx I go right through the paypal process and I finally get...
7
by: Alan Silver | last post by:
Hello, I've just been looking at the free PayPal component from ComponentOne and am somewhat amazed how insecure it is. They include all the transaction details in plain text in the querystring,...
3
by: Jano | last post by:
Hi - Happy New Year! I have a web-site which accepted paypal payment for membership. No-one's buying so I want to make it free. The page which inputs the member details into the database needs...
8
by: gnewsgroup | last post by:
I have never done anything involving handling credit card payment online. I searched this forum a little bit, and found a few related questions. But, I am still not clear how the solutions they...
0
by: yuwenwu006 | last post by:
5% paypal handling charge supports the online payment! PayPal cheap Guess wallet Dear friend welcome to shopping on www.Shoes-paypal.cn 1.5% paypal handling charge supports the online payment!...
1
by: vjayis | last post by:
Hi i m a working with paypal to integrate it with my website., users can book the hall regarding time basis. so i m sending the amount to paypal by paynow button created through my paypal...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.