Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Building a buying page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Building a buying page

 Post Reply Post Reply
Author
WebDever View Drop Down
Newbie
Newbie


Joined: 28 September 2003
Location: United Kingdom
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebDever Quote  Post ReplyReply Direct Link To This Post Topic: Building a buying page
    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

Thanks for your time, I appreciate it

Back to Top
Bullschmidt View Drop Down
Groupie
Groupie


Joined: 31 May 2003
Location: United States
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bullschmidt Quote  Post ReplyReply Direct Link To This Post 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/"
   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 and of course could include a user ID or transaction ID or something too.

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

Buy Now Buttons
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
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
Classic ASP Design Tips, ASP Web Database Sample (Freely Downloadable)
Back to Top
808Rider View Drop Down
Senior Member
Senior Member

Vebro Solutions CEO http://www.vebro.net

Joined: 20 April 2003
Status: Offline
Points: 405
Post Options Post Options   Thanks (0) Thanks(0)   Quote 808Rider Quote  Post ReplyReply Direct Link To This Post Posted: 06 July 2004 at 4:09am

I would recommend My ASP PayPal E-Goods Protector : 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/

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.