Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 18th, 2009, 11:10 PM
Friend of Wrox
 
Join Date: Sep 2007
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
Default Questions about paypal/asp.net

Hi

I have a couple questions. I have a couple items and I am wondering how do people usually figure out how much the items total up too. I know people use shopping charts and stuff for multiple items but I only will have 3 items(and you only can choose one since it is just subscription).

So how can i figure out say if they choose the $20 subscription verus the $30 or $40 subscription?

Can I just hard code the price into a label that I display to the user then grab that value later on? Would this be secure since when they leave the page(to go to paypal via the paypal button) that label should be regenerated first so that $20 in that label should be the real number and can't be tampered with since it is generated on the server side, right?

Also I think paypal recommends to keep checking the amount at every step to make sure that the amount has not been tampered with(I am not sure if this is necessary if your using SSL but it could not hurt to do).

So of course everything will be going across pages. For instance I am using there express checkout api.

So it goes from my site to paypal to my site. So I probably need to check it when it gets back to my site. So I was thinking of using a session but I am not sure how secure they are and if they can be easily tampered with. I probably could store the value in the database but I really don't want to waste my space on that espcially since it is so temperary.
 
Old March 19th, 2009, 07:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Just a quick question. You say this is a subscription, so you don't want to store a value (a simple value) on the database. Well, when the subscription ends (because there is a start date that you need to store and maybe, and end date). How will you know how much you have to recharge the user to get the subscription back???

Also, is there is any problem, how will you, for example, return the money???
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
 
Old March 19th, 2009, 03:40 PM
Friend of Wrox
 
Join Date: Sep 2007
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by gbianchi View Post
Just a quick question. You say this is a subscription, so you don't want to store a value (a simple value) on the database. Well, when the subscription ends (because there is a start date that you need to store and maybe, and end date). How will you know how much you have to recharge the user to get the subscription back???

Also, is there is any problem, how will you, for example, return the money???
Hi

I will store the transaction once the transaction is completed. I will have orderHistory table that will store stuff like the price they paid and the transaction. But I am talking about while the transaction is still in the stages of being processed(ie they have not finalized the payment).

I will be using IPN once I get the verified back from paypal the transaction will be saved.

I will also have another table that keeps start and end date and will be validated on login.

There will be no automatic re subscription right now since this is for students and the 3 options I will be giving should be good(20weeks,40weeks,1year). It is not a monthly thing and since I am assuming they will have summer vacation and stuff then there is no point of doing automatic subscrption(unless by popular demand).

There will be no refunds since I will give them 7 day free trail and if they can't decide they don't like after 7 full days then thats tough luck(at this stage you should be able to basically know how to use the entire system in like a day). In the future when more stuff is added then I might add a refund.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Several questions in asp.net collie General .NET 0 September 30th, 2006 05:58 AM
ASP.NET questions. cstooch Classic ASP Databases 0 May 14th, 2006 02:13 PM
Paypal and IPN Using ASP.NET stu9820 ASP.NET 1.0 and 1.1 Basics 1 May 21st, 2005 12:52 AM
Beginning E-Commerce ASP.NET PayPal problems mluirette All Other Wrox Books 0 December 18th, 2003 03:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.