Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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 October 15th, 2007, 10:48 AM
Authorized User
 
Join Date: Oct 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default Integrating Webshop with PayPal

Hi Imar,

Does anyone have the code to integrate the webshop with PayPal. If so can you point me in the right direction.

Thanks,

Matt

 
Old October 15th, 2007, 12:33 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Matt,

Sorry, no code readily available. However, from what I know, I don't think connecting to PayPal is very difficult. Check out their site for some dev tips....

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old October 23rd, 2007, 10:44 PM
Authorized User
 
Join Date: Oct 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Below is the code that is supposed to be used with paypal. The only issue is that this code is enbedded into a form. How do we integrate this code into the webshop. In the book it says to use the check out page but the check out page doesn't allow the use of forms. Whats the best way to integrate this code into the webshop.

</head>
<body>
<form target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_cart_SM.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="tstmer_119308xxxx_biz@testdomain.com">
<input type="hidden" name="item_name" value="Matty's Bracelet">
<input type="hidden" name="item_number" value="0001">
<input type="hidden" name="amount" value="100.00">
<input type="hidden" name="buyer_credit_promo_code" value="">
<input type="hidden" name="buyer_credit_product_category" value="">
<input type="hidden" name="buyer_credit_shipping_method" value="">
<input type="hidden" name="buyer_credit_user_address_change" value="">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-ShopCartBF">
</form>
</body>
</html>

 
Old October 24th, 2007, 02:09 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Matt,

Do a Google search for CrossPagePostback.

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old January 30th, 2008, 11:52 PM
Authorized User
 
Join Date: Dec 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Antilles128 Send a message via Yahoo to Antilles128
Default

Okay, I'm sure I'm beating dead horse here, but I just wanted to make sure I understand what's happening:

Basically, using the CrossPagePostBack, we're taking what would be the action of the HTML form (the paypal URL), and making it the PostBackURL target of the checkout button?

So, for example, we have Btn1_onClick that, when fired, takes all of the required information for PayPal (either from hidden fields or labels or text fields, what have you), and does a PostBack on the PayPal URL. Right?

 
Old January 31st, 2008, 02:07 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yes, that's pretty much the idea.

I think the PayPal site should have more info on this, and maybe even sample code.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old September 15th, 2009, 12:44 AM
Registered User
 
Join Date: Sep 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
But paypal info is not for a beginner. They are all for intermediate level person. I am beginner. How can you start to cross page rank ?
 
Old September 15th, 2009, 05:39 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

PayPal can certainly be used by beginners; just not by wrist bands sellers. Sorry....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
paypal and asp ocabrera70 Classic ASP Professional 3 September 25th, 2014 06:30 AM
PayPal Integration takwirira ASP.NET 2.0 Basics 0 May 12th, 2008 05:44 AM
PayPal - IPN Shabequl PHP How-To 1 September 26th, 2007 05:15 PM
Passing values to PayPal sterreyl ASP.NET 2.0 Basics 0 March 28th, 2007 05:15 PM
paypal ? anshul Pro PHP 1 November 24th, 2004 01:19 AM





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