1 / 19

Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard

Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard. Lab: Adding PayPal to Existing VeriSign Solutions. Overview. Express Checkout Features & Benefits VeriSign Hosted & SDK support for PayPal Express Checkout Flow Express Checkout Demo: Payflow Link

merrill
Download Presentation

Jim Cunningham, Sr. Engineering Manager Todd Sieber, Integrations Wizard

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

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

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

  4. VeriSign Hosted & SDK support for PayPal

  5. 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)

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

  7. Express Checkout API Flow

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

  9. Express Checkout Lab: Set Command • Storefront Page • Visit the Tiki bar at http://www.toddstikibar.com/default.aspx • Review the source code – SET_COMMAND • PurchaseDescription.aspx • View Source • Find SET_COMMAND • Review the source

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

  11. Express Checkout Lab: Redirect Command • Storefront Page • Visit the Tiki bar at http://www.toddstikibar.com/default.aspx • Review the source code – SET_COMMAND • 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

  12. 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);

  13. Express Checkout Lab: PayPal Pages • PayPal Page • 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 • 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”

  14. Express Checkout Lab: Get Command • Confirm Purchase Page Setup • 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

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

  16. Express Checkout Lab: Do Command • Confirm Purchase Page • 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

  17. 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:

  18. Express Checkout Lab: Purchase Completed! • Continue Shopping Page • 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!

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

More Related