Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Integrating PayPal with WebSphere Commerce V7

Yi Xu Song (songyx@cn.ibm.com), Software Engineer, IBM
Photo of Yi Xu Song
Yi Xu Song is a Software Engineer with the WebSphere Commerce Order Payment development team, and is currently the component owner of Order Payment. He has published an invention and documents about order payment in the WebSphere Commerce Information Center.

Summary:  Learn how to integrate PayPal® with WebSphere® Commerce V7.0.0.1 or later so that you can use PayPal to process payment for online orders. You will add a new payment method for PayPal, create a new payment plug-in for PayPal, and customize several JSP and commands to support the PayPal flow.

Date:  May 2012 (Published 19 Jan 2011)
Level:  Intermediate PDF:  A4 and Letter (1112 KB | 24 pages)Get Adobe® Reader®

Activity:  39499 views
Comments:  

Deploying to a production environment

You have completed the previous steps in a toolkit environment for the convenience of development and unit testing. You can now deploy to a WebSphere Commerce production environment.

Follow the same steps as above, but consider the following points that are different from completing the steps in the toolkit environment:

  1. When deploying the Payments-Plugin-PayPal project in the toolkit, you need to import and add the project to the WebSphere Commerce modules. For the runtime environment, you need to package the Payments-Plugin-PayPal project from the toolkit to a JAR file (see Packaging Java EE assets for an entire module in the Information Center), and then deploy it to the WebSphere Commerce server as an EJB (see Deploying J2EE assets for an entire module in the Information Center).
  2. For the Importing PayPal’s digital certificate section, you need to export and import the certificate using the real PayPal express check out URL (https://www.paypal.com) instead of the Sandbox's URL.
  3. Register a real PayPal account instead of a Sandbox testing account if you want to use the PayPal payment method for online stores. Then configure the USER, PWD, and SIGNATURE of the real PayPal business account as the merchant configuration information.
  4. Remember to change the following parameters in PluginDeployment.xml, according to the host name of the WebSphere Commerce server and the real PayPal express check out URL. Refer to the PayPal Checkout Integration Guide on how to request the account.
    <PluginProperty name="initializationBaseURL" value="https://api-3t.sandbox.
     paypal.com/nvp" />
    <PluginProperty name="authenticationBaseURL" value=
     "https://www.sandbox.paypal.com/cgi-bin/webscr" />
    <PluginProperty name="RETURNURL" value="http://localhost/webapp/wcs/stores/
     servlet/PunchoutPaymentCallBack" />
    <PluginProperty name="CANCELURL" value="http://localhost/webapp/wcs/stores/ 
      servlet/PunchoutPaymentCallBack" />
    

  5. For ExtPunchoutPaymentCallBackCmdImpl.java, put the class file in the same package as the runtime's WebSphereCommerceServerExtensionsLogic.jar as a patch.

5 of 9 | Previous | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere
ArticleID=617595
TutorialTitle=Integrating PayPal with WebSphere Commerce V7
publish-date=05192012
author1-email=songyx@cn.ibm.com
author1-email-cc=dwu@us.ibm.com

IBM SmartCloud trial. No charge.

IBM PureSystems on a kaleideoscope background

Unleash the power of hybrid cloud computing today!


Special offers