Print Page | Close Window

Building a buying page

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=11060
Printed Date: 31 March 2026 at 3:19am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Building a buying page
Posted By: WebDever
Subject: Building a buying page
Date Posted: 01 July 2004 at 10:49am

Hi all and -Borg-,

I'm currently building a photo gallery at the moment, and I've just been asked to integrate some form of buying for the photos. The website has a good members system, and the gallery section can only be viewed if they are logged in. So security is OK, but what I'd like to know, is how integrate the buying in with the gallery e.g. What about if I have special requirements and PayPal only accepts ItemID, ItemName, ItemPrice, Shipping?

Do I add records to the db before they go to PayPal, what the best process of a buying system?

It doesn't have to be really advanced e.g. Add to Cart, Clear Cart. All I need to do is add something to the detail page for a photo then let them buy it and then get a reply via email etc.

An example of the process I would like to integrate can be viewed here: http://www.webwiz.net/purchase/default.asp - http://www.webwiz.net/purchase/default.asp

Thanks for your time, I appreciate it



-------------
--Ashley



Replies:
Posted By: Bullschmidt
Date Posted: 05 July 2004 at 11:50pm

Here's a little PayPal link that has worked for me:

   ' Create PayPal URL.
   strPayPalURL = " https://www.paypal.com/xclick/ - https://www.paypal.com/xclick/ "
   strPayPalURL = strPayPalURL & "business=" & Server.URLEncode(mstrPayPalEmail)
   strPayPalURL = strPayPalURL & "&item_name=" & Server.URLEncode("The Company Name - License Purchase")
   strPayPalURL = strPayPalURL & "&amount=" & Server.URLEncode(LicenseTotal)
   strPayPalURL = strPayPalURL & "&no_shipping=" & Server.URLEncode("1")
   ' THE FOLLOWING 2 LINES ARE COMMENTED OUT.
'   strPayPalURL = strPayPalURL & "&return=" & Server.URLEncode(mstrSiteMain & "/orderconfirm.asp?paypalstatus=success")
'   strPayPalURL = strPayPalURL & "&cancel_return=" & Server.URLEncode(mstrSiteMain & "/orderconfirm.asp?paypalstatus=cancel")
   strPayPalURL = strPayPalURL & "&no_note=" & Server.URLEncode("1")
   strPayPalURL = strPayPalURL & "&currency_code=" & Server.URLEncode("USD")

And here is more about the PayPal stuff:

You can set what page on your site that PayPal is to go to if there was success and you can set another page for if there was a cancel.  And these URLs CAN contain a query string such as http://www.mysite.com/mypage.asp?paypalstatus=success - http://www.mysite.com/mypage.asp?paypalstatus=success and of course could include a user ID or transaction ID or something too.

PayPal
http://www.paypal.com - http://www.paypal.com
Then click on Merchant Tools.

Buy Now Buttons
http://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/singleitem-intro-outside - http://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/singleite m-intro-outside

Buy Now Buttons Manual (PDF)
https://www.paypal.com/html/single_item.pdf - https://www.paypal.com/html/single_item.pdf
Especially see p. 20 "Sample HTML Code for a Buy Now Button"
And p. 21 "Sample Buy Now Hyperlink" and HTML and Hyperlink Variables



-------------
J. Paul Schmidt, Freelance ASP Web Developer
www.Bullschmidt.com - www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Sample (Freely Downloadable)


Posted By: 808Rider
Date Posted: 06 July 2004 at 4:09am

I would recommend My ASP PayPal E-Goods Protector : http://www.kattouf.com/mypaypalprotector/ - http://www.kattouf.com/mypaypalprotector/

Great product which I am sure you could use to fit your needs.

The author is Johnny Kattouf : http://www.kattouf.com/ - http://www.kattouf.com/



-------------
PodcastPUP: http://podcastpup.com - http://podcastpup.com
808Talk: http://808Talk.com - http://808Talk.com
808TTV: http://808Talk.tv - http://808Talk.tv



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net