Lab: Adding PayPal to Existing VeriSign Solutions Jim Cunningham, Todd Sieber,

Lab: Adding PayPal to Existing VeriSign Solutions
Jim Cunningham,
Sr. Engineering Manager
Todd Sieber,
Integrations Wizard
Overview





Express Checkout Features & Benefits
VeriSign Hosted & SDK support for PayPal
Express Checkout Flow
Express Checkout Demo: Payflow Link
Express Checkout Lab: Building an application
 View source of the application code
 Follow along using the simulator
 Payflow Pro: Future Directions
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
2
Express Checkout Features & Benefits
 Add the PayPal mark as a payment type
 Payment is made from the buyers online PayPal account using
existing balance or funding sources
 Buyer convenience
 Buyers prefer not to divulge credit card number to many sites
 Buyers are familiar with PayPal and feel comfortable
 Simple and fast checkout
 Seller Value
 Extend Customer base to PayPal buyers
 Simple one-stop solution for integration and funding
 Competitive pricing
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
3
VeriSign Hosted & SDK support for PayPal
Product\Tender
PayPal Account
Credit Card
Website Payments
Pro
PayPal Express
Checkout
Direct Payment API
Payflow Link
(hosted)
Payflow Link with
Express Checkout
Payflow Link with
Direct Payment (coming
Payflow Pro
(API-based)
Verisign SDK with
Express Checkout
Verisign SDK with
Direct Payment
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
4
soon)
(coming soon)
Payflow Pro & Payflow Link
 Website Payments Pro – API integration
 PayPal functions only
 SOAP and XML integration
 VeriSign Hosted checkout – Payflow Link (demo)




Use Credit Card, Telecheck, and now PayPal
Configure your hosted page behavior in VeriSign Manager
FORM parameters do not need to change
FORM “action” needs to point to new PayPal URL
 VeriSign SDK integration – Payflow Pro (lab)
 Examine code to call Payflow Pro API functions
 Customers stay on Merchants website (except for PayPal
account Login)
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
5
Express Checkout: Payflow Link Flow
 Set Express Checkout
 Set Return URL and PayPal page colors
 New TENDER=P
 New ACTION=S
 Re-direct Buyer to PayPal
 Get Express Checkout
 Allow the buyer to confirm purchase
 New ACTION=G
 Do Express Checkout
 New ACTION=D
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
6
Express Checkout API Flow
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
7
Express Checkout Demo: Payflow Link
 Todd's Tiki Bar
 Start on Todd’s Tiki Bar Site Checkout Page
 Go to http://www.toddstikibar.com/pfl/default.aspx
 Select PayPal as a payment type
 Redirect to PayPal
 Login to your PayPal account
 Select PayPal shipping and funding
 Return to Todd’s Tiki Bar to confirm
 Purchase the product
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
8
Express Checkout Lab: Set Command

Storefront Page
1. Visit the Tiki bar at http://www.toddstikibar.com/default.aspx
2. Review the source code – SET_COMMAND




PurchaseDescription.aspx
View Source
Find SET_COMMAND
Review the source
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
9
View Source: SET_COMMAND
Purchase Description Page
// BEGIN SET_COMMAND
// Create the data object for Express Checkout SET operation using ECSetRequest Data Object.
ECSetRequest SetRequest = new ECSetRequest
(Constants.LocalHostName + "/PaypalDetails.aspx",
// This is the Return URL
Constants.LocalHostName + "/PurchaseComplete.aspx");
// This is the Cancel URL
Name/Value Pair Example
TRXTYPE=S&
TENDER=P&
PARTNER=verisign&
PWD=testing2&
VENDOR=test2&
USER=test2user&
AMT=10.00&
ACTION=S&
RETURNURL=http://localhost/PaypalDetails.aspx &
CANCELURL = http://localhost/PurchaseComplete.aspx&
HDRBACKCOLOR=000000&
HDRBORDERCOLOR=000000&
PAYFLOWCOLOR=000000“
Return
Token=EC-MC4yNjUxOTc3NTM5
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
10
Express Checkout Lab: Redirect Command

Storefront Page
1. Visit the Tiki bar at http://www.toddstikibar.com/default.aspx
2. Review the source code – SET_COMMAND
3. Review the source code – REDIRECT_COMMAND




View Source (should already be looking at the source)
Find REDIRECT_COMMAND
Review the source
Close the view source window and return to the website
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
11
View Source: REDIRECT_COMMAND
// REDIRECT_COMMAND
// If the SET operation succeeds, you will get a secure session token id in the
// response of this operation. Using this token, redirect the user's browser to
PayPal.
String PaypalUrl = "https://test-expresscheckout.paypal.com/cgibin/webscr?cmd=_express-checkout&token=";
PaypalUrl+= Trans.Response.ExpressCheckoutSetResponse.Token;
Response.Redirect(PaypalUrl,true);
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
12
Express Checkout Lab: PayPal Pages

PayPal Page
1.
2.
3.
4.
Visit the Tiki bar at http://www.toddstikibar.com/default.aspx
Review the source code – SET_COMMAND
Review the source code – REDIRECT_COMMAND
Select PayPal as the payment method


Select the radio button for PayPal
Click “Continue” button
5. You are on PayPal site! (well, the simulator)

From the “Checkout with PayPal” page click “Login”


No password required
From “Review Your PayPal Information” page, click “Continue
Checkout”
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
13
Express Checkout Lab: Get Command

Confirm Purchase Page Setup
1.
2.
3.
4.
5.
6.
Visit the Tiki bar at http://www.toddstikibar.com/default.aspx
Review the source code – SET_COMMAND
Review the source code – REDIRECT_COMMAND
Select PayPal as the payment method
You are on PayPal site! (well, the simulator)
Review the source code – GET_COMMAND


View source
Find GET_COMMAND
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
14
View Source: GET_COMMAND
//
//
//
//
GET_COMMAND
The shipping information will be PayPal server will redirect
the customer to the ReturnURL you have specified in the previous
SET request.
ECGetRequest GetRequest = new ECGetRequest(Token);
NVP Return:
RESULT=0&RESPMSG=Approved&AVSADDR=Y&
TOKEN=EC-MC4yNjUxOTc3NTM5&PAYERID=12345678901234567&
EMAIL=Buyer1@paypal.com&PAYERSTATUS=verified&
FIRSTNAME=joe&LASTNAME=smith&SHIPTOSTREET=111 main st.&
SHIPTOCITY=San Jose&SHIPTOSTATE=ca&
SHIPTOZIP=95100&SHIPTOCOUNTRY=us
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
15
Express Checkout Lab: Do Command

Confirm Purchase Page
1.
2.
3.
4.
5.
6.
7.
Visit the Tiki bar at http://www.toddstikibar.com/default.aspx
Review the source code – SET_COMMAND
Review the source code – REDIRECT_COMMAND
Select PayPal as the payment method
You are on PayPal site! (well, the simulator)
Review the source code – GET_COMMAND
Review the source code – DO_COMMAND


View source
Find DO_COMMAND
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
16
View Source: DO_COMMAND
// http://localhost/eStoreFront/PaypalDetails.aspx
// Once the customer has reviewed the shipping details and decides
// to continue checkout by clicking on "Continue Checkout" button,
// it's time to actually authorize the transaction.
// This is the third step in Paypal Express Checkout, in which you
// need to perform a DO operation to authorize the purchase amount.
// Create a DO request.
ECDoRequest DoRequest = new
ECDoRequest((String)Session["Token"],(String)Session["PayerId"]);
NVP Return:
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
17
Express Checkout Lab: Purchase Completed!

Continue Shopping Page
1.
2.
3.
4.
5.
6.
7.
8.
Visit the Tiki bar at http://www.toddstikibar.com/default.aspx
Review the source code – SET_COMMAND
Review the source code – REDIRECT_COMMAND
Select PayPal as the payment method
You are on PayPal site! (well, the simulator)
Review the source code – GET_COMMAND
Review the source code – DO_COMMAND
Order Complete Page!
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
18
Payflow Pro: Future Directions
 HTTP compliant SDK (client-less integration)
 All PayPal features will be supported using the Payflow Pro
SDK





Express Checkout
Direct Payments
Get Transaction Details API
MassPay API
Transaction Search API
© 2006 PayPal Inc.
PayPal and the PayPal logo are registered trademarks of PayPal, Inc.
Other trademarks and brands are the property of their respective owners.
19