Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to...

19
Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions

Transcript of Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to...

Page 1: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

Jim Cunningham,Sr. Engineering Manager

Todd Sieber,Integrations Wizard

Lab: Adding PayPal to Existing VeriSign Solutions

Page 2: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

2

© 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.

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

Page 3: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

3

© 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.

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

Page 4: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

4

© 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.

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

soon)

Payflow Pro(API-based)

Verisign SDK with Express Checkout

Verisign SDK with Direct Payment

(coming soon)

Page 5: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

5

© 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.

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)

Page 6: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

6

© 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.

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

Page 7: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

7

© 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.

Express Checkout API Flow

Page 8: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

8

© 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.

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

Page 9: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

9

© 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.

Express Checkout Lab: Set Command

Storefront Page1. Visit the Tiki bar at http://www.toddstikibar.com/default.aspx2. Review the source code – SET_COMMAND

PurchaseDescription.aspx View Source Find SET_COMMAND Review the source

Page 10: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

10

© 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.

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 ExampleTRXTYPE=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

Page 11: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

11

© 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.

Express Checkout Lab: Redirect Command

Storefront Page1. Visit the Tiki bar at http://www.toddstikibar.com/default.aspx2. Review the source code – SET_COMMAND3. 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

Page 12: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

12

© 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.

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/cgi-bin/webscr?cmd=_express-checkout&token=";

PaypalUrl+= Trans.Response.ExpressCheckoutSetResponse.Token; Response.Redirect(PaypalUrl,true);

Page 13: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

13

© 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.

Express Checkout Lab: PayPal Pages

PayPal Page1. Visit the Tiki bar at http://www.toddstikibar.com/default.aspx2. Review the source code – SET_COMMAND3. Review the source code – REDIRECT_COMMAND 4. 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”

Page 14: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

14

© 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.

Express Checkout Lab: Get Command

Confirm Purchase Page Setup1. Visit the Tiki bar at http://www.toddstikibar.com/default.aspx2. Review the source code – SET_COMMAND3. Review the source code – REDIRECT_COMMAND 4. Select PayPal as the payment method5. You are on PayPal site! (well, the simulator)6. Review the source code – GET_COMMAND

View source Find GET_COMMAND

Page 15: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

15

© 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.

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 protected]&PAYERSTATUS=verified&FIRSTNAME=joe&LASTNAME=smith&SHIPTOSTREET=111 main st.&SHIPTOCITY=San Jose&SHIPTOSTATE=ca&SHIPTOZIP=95100&SHIPTOCOUNTRY=us

Page 16: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

16

© 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.

Express Checkout Lab: Do Command

Confirm Purchase Page1. Visit the Tiki bar at http://www.toddstikibar.com/default.aspx2. Review the source code – SET_COMMAND3. Review the source code – REDIRECT_COMMAND 4. Select PayPal as the payment method5. You are on PayPal site! (well, the simulator)6. Review the source code – GET_COMMAND7. Review the source code – DO_COMMAND

View source Find DO_COMMAND

Page 17: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

17

© 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.

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:

 

Page 18: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

18

© 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.

Express Checkout Lab: Purchase Completed!

Continue Shopping Page1. Visit the Tiki bar at http://www.toddstikibar.com/default.aspx2. Review the source code – SET_COMMAND3. Review the source code – REDIRECT_COMMAND 4. Select PayPal as the payment method5. You are on PayPal site! (well, the simulator) 6. Review the source code – GET_COMMAND7. Review the source code – DO_COMMAND8. Order Complete Page!

Page 19: Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard Lab: Adding PayPal to Existing VeriSign Solutions.

19

© 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.

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