PayPal Express Application

PayPal logo
More Info: Technical Specs & Tests
Platforms: Legacy eCommerce, KCCP eCommerce and eCommerce+OMS

PayPal is one of the world's largest digital payment processors, serving over 169 million customers in more than 200 markets. The PayPal Express application enables you to easily add PayPal's Express Checkout functionality to your existing eCommerce payment options. 

Application Features

  • Enables PayPal Express Checkout on both shopping cart and checkout pages. Customers with a PayPal account can check out directly from the cart.
  • Securely connects Kibo to your existing PayPal merchant account through your PayPal Merchant ID and API Signature.
  • Communicates necessary order and shipping information between both systems.
  • Allows for separate authorization and capture. Authorize payments on customer order and capture later through eCommerce.
  • Imports all necessary order information back into eCommerce for payment capture, fulfillment, and order history.
  • Can be enabled alongside any other payment providers or gateways, including Pay with Amazon and Visa Checkout.

Setup Overview

The following steps are required before you can use PayPal Express Checkout on your site(s):

  1. Install the PayPal Express Application on your tenant.

    If you create a new site in a tenant after installing the PayPal Express Application, you must reinstall the app to apply the payment configuration settings to the new site.

  2. Update your Kibo theme.
  3. Configure PayPal Express in your payment settings.
  4. Enable the app.

Install the App

Kibo offers two options for adding PayPal Express Checkout functionality to your tenant:

  1. (Recommended) Contact your Kibo sales or professional services representative to install the PayPal Express Application on your tenant.
  2. Build the application from the Kibo-provided code on GitHub and install it to Dev Center. This option requires that you have API Extensions enabled on your tenant, and is only recommended if you are working with Kibo Professional Services or a Kibo Partner and need a highly customized integration. Contact your sales or professional services representative for more information.

If you create a new site in a tenant after installing the PayPal Express Application, you must reinstall the app to apply the payment configuration settings to the new site.

Update Your Kibo eCommerce Theme

This section assumes you already have a general understanding of how to build, update, install, and apply Kibo themes. 

Installing and configuring the PayPal Express app enables PayPal Express functionality in Admin. However, you still must enable PayPal functionality on your storefront so that customers can use it. Kibo provides a couple sample themes on GitHub that you can use to integrate PayPal Express functionality:

  1. Select your sample theme:
    • PayPalExpress-Theme—Contains the full source files for the Kibo Core 9 theme, with the required changes to enable PayPal Express. Branches of this theme are also available for Core 8, 7, and 6.
    • ThirdpartyPayments-Theme—Contains the full source files for the Kibo Core 9 theme, with the required changes to enable both PayPal Express and Pay with Amazon. Use this theme if you are enabling both payment options at the same time. A branch of this theme is also available for Core 8. Note that Pay with Amazon requires the installation of a separate app.
  2. Review and apply the changes made in our sample implementation to your own theme. You can run the git diff command in any command-line shell to see the differences between the sample implementation and your own theme.
  3. Use the Kibo Theme Generator or run Grunt to build the theme.
  4. Upload the resulting ZIP file to Dev Center.
  5. Install the updated theme to the sandbox you're working in.
  6. In Admin, go to Main > Content > Themes.
  7. Click the dots next to the new theme and select Apply.

Configure the App

After the PayPal Express application is installed, you must configure your payment settings in Admin to connect eCommerce with your PayPal account:

If you create a new site in a tenant that already has the PayPal Express Application installed, you must reinstall the app to apply the payment configuration settings to the new site.

  1. In Admin, go to System > Settings > Payments.
  2. Check the PayPalExpress2 checkbox to display the PayPal configuration fields:

    The PayPal configurations in payment settings

    If you were previously using the built-in PayPal option in Admin (deprecated in the Kibo eCommerce November 2015 Service Update), you must disable that functionality to configure PayPal Express.

  3. Select the PayPal Environment you want to use:
    • Select Sandbox to use PayPal's sandbox environment for testing your PayPal Express integration.
    • Select Production to use a working PayPal environment that processes payments.
  4. Enter the User Name and Password for your PayPal merchant account.
  5. Enter your PayPal API Signature. To find your API signature in PayPal:
    1. Log in to paypal.com with your merchant account.
    2. Click Profile.

      Close-up of the Profile button in PayPal

    3. On the My Profile page, select My Selling Tools.

      Close-up of the My Profile options in PayPal and a callout of the

    4. In the Selling online section, locate API access and click Update.
    5. Click View API Signature under NVP/SOAP API integration.
  6. Enter your PayPal Merchant account ID. To find your ID:
    1. Log in to paypal.com with your merchant account.
    2. Click Profile.
    3. On the My Profile page, select My Business Info.
    4. Your Merchant account ID appears near the bottom of the list.
  7. Select an Order Processing method:
    • Authorize and Capture on Order Placement both authorizes AND captures payment when an order is placed.
    • Authorize on Order Placement and Capture on Order Shipment authorizes a payment when an order is placed, but does not capture that payment until you manually click Capture from the Orders module in Admin. (Typically, you capture payment when you ship an order.)
  8. Click Save to save your PayPal Express settings.

Display Billing Address

You can configure the PayPal Express application to display shoppers' billing address within Admin, on the checkout page, and in confirmation emails.

You can configure this functionality using the API Extensions JSON editor available in Admin. Refer to Getting Started with API Extensions for more information about API Extensions.

To configure the application to display shoppers' billing address:

  1. Make sure you have the latest version of the application installed.
  2. In Admin, go to System > API Extensions.
  3. Within the paypalProcessor function configuration, set addBillingInfo to true. You can also use the missingLastNameValue to provide a value for the last name in case it is missing from the billing info.
    For example, if you chose to enable adding the billing info from Paypal, the configuration for the paypalProcessorfunction would look like:
    {
        "actionId": "http.storefront.routes",
        "contexts": [
            {
                "customFunctions": [
                    {
                        "applicationKey": "a0842dd.mppea.1.2.2.Release",
                        "functionId": "paypalProcessor",
                        "enabled": true,
                        "configuration": {
                            "addBillingInfo": true,
                            "missingLastNameValue": "N/A"
                        },
                        "timeoutMilliseconds": 30000
                    }
                ]
            }
        ]
    }

Enable the App

After configuration, enable the PayPal Express application to apply its functionality to your tenant:

  1. In Admin, go to System > Customization > Applications.
  2. Select the PayPal Express Application.
  3. Click Enable App on the app page.

Use the App

After you have installed the app and merged the theme changes, Check out with PayPal appears on the cart and checkout pages of your eCommerce site.

Pay with PayPal from the Cart Page

With PayPal Express enabled, your customers see a PayPal button from the Cart page of your site. Complete the following steps to test the user experience:

Example of the Cart page on the storefront with the PayPal button

  1. Click Checkout with PayPal to launch a modal browser window for PayPal.
  2. Create or log in to your PayPal account. Because you are testing the buyer's experience, this should be a different account than your merchant account. You can also choose to remember your account info so you can skip the log-in process for future purchases.
  3. Select your preferred payment method and shipping address from the options saved in your PayPal account.

    If you have a balance or credit in your PayPal account, PayPal requires you to use all of the balance before it allows you to select a different payment method.

  4. Click Continue to return to the eCommerce Checkout page. The shipping information from PayPal appears in eCommerce, and a PayPal logo appears in the Payment Information section.
  5. (Optional) Apply coupons or make changes. You can change any of the information on the Checkout page up until the time you click Place Order. Kibo automatically updates PayPal with any changes made through the Checkout page before the order is placed.
  6. Click Place Order. Kibo adds any shipping, fees, and taxes to the total charged to your PayPal account, and removes any amount covered by discounts or gift cards.

Pay with PayPal from the Checkout Page

A customer who chooses Proceed To Checkout from the Cart page can still check out with PayPal. Complete the following steps to test the user experience:

  1. On the Checkout page, enter your Shipping Information and select your Shipping Method.
  2. (Optional) Apply any coupons, gift cards, or store credits.
  3. Under Payment Information click Check out with PayPal:

    The payment details information on the checkout page and the  Sample Checkout page as it appears to a customer.

  4. In the browser window that appears, log in to your PayPal account. Because you are testing the buyer's experience, this should be a different account than your merchant account. Kibo automatically sends the shipping address you entered to PayPal, and the full order amount (including shipping, taxes, and discounts) is reflected in the order total.
  5. Select your preferred payment method.
  6. Click Continue to return to the eCommerce Checkout page.
  7. Click Place Order to complete the order.

Payment Authorization and Capture

Depending on the Order Processing method you chose when you configured the app, when a customer clicks Place Order on a eCommerce Checkout page, eCommerce either just authorizes the order or authorizes the order AND captures payment.

Regardless of when you capture payment, Kibo strongly recommends you always capture payment from eCommerce. If you capture payment from your PayPal merchant account, you must then handle any refunds or returns from PayPal, which can throw off your eCommerce order history.

The order appears in the Orders module in Admin. Note the following details from the Payments tab:

Example of a PayPal order in the Admin A sample PayPal Express order in Kibo eCommerce.

Example of a PayPal order in Admin with callouts for the invoice and transaction IDs The Transaction Details page for the payment authorization from the same order in PayPal.

CaptionDescription
1The Order Number in eCommerce matches the Invoice ID in PayPal.
2The payment Method indicates a payment type of PayPal Express.
3The Transaction History entry for the payment authorization:
  • 3a—The Transaction ID for the authorization. Transaction IDs always match between Kibo and PayPal.
  • 3b—The Response Message for the authorization. This includes the PayPal CorrelationID for the transaction. If you need to contact PayPal Merchant Technical Support about a specific transaction, you can provide this ID to find the transaction.
4The Transaction History entry for the payment authorization.
  • 4a—The Transaction ID for the payment capture.
  • 4b—The Response Message and PayPal CorrelationID for the payment capture transaction.

Returns

If you return or credit a payment in eCommerce, the credit appears as a PayPal credit in the customer's PayPal account.

Declines

The PayPal Express Application does not process declines. If you decline a payment in eCommerce, you must also manually decline the payment in PayPal.