Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic PayPal Add to Cart Button

Status
Not open for further replies.

nevets2001uk

IS-IT--Management
Jun 26, 2002
609
GB
Does anyone know any articles / methods to using ASP.NET to dynamically create an Add to Cart button for PayPal.

I have a photography website and depending on the photo customers may selection various sizes and finishes which all adjust the cost. I'm using some formulas and a database to calculate these costs but need a way to pass the item to a PayPal cart. I did look at building my own cart but want to save time if possible as the PayPal cart should be enough to begin with.

The problem with PayPal is I seem to need to add the products to their system to get the button code. This is not practical with the number of photographs on the site and the different size and price options each one has. A problem would also arise if I adjust the base price of a certain print which i want to apply to all photos.

I'm assuming theirs a way to build a button with the create code to add an item to the PayPal cart without having it created in PayPal first? If not what would be the next best approach?

Steve G (MCSE / MCSA:Messaging)
 
Have a look through the Paypal Developers section as you'll need to find out what paypal requires from each button. Then it's just a case of building that dynamic button as you would for any other dynamic control.

Mark,

[URL unfurl="true"]http://lessthandot.com[/url] - Experts, Information, Ideas & Knowledge
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Website Design
[URL unfurl="true"]http://aspnetlibrary.com[/url] - An online resource for professional ASP.NET developers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top