Customize the Pay Later messaging layout on CubeCart

DocsCurrentLast updated: February 10th 2022, @ 8:59:14 am


Promote PayPal Pay Later offers using messaging on your CubeCart store.

PayPal offers short-term, interest-free payments and other special financing options that buyers can use to buy now and pay later. You get paid up-front, and there are no additional costs.

Pay Later messaging includes Pay in 3, which UK buyers can use to pay for purchases of £30.00 to £2,000 in three, interest-free payments.

Know before you begin

  • Before you begin, learn more about Pay Later offers.
  • Pay Later offers are automatically enabled with CubeCart for merchants on the latest version of the PayPal Commerce Platform integration.
  • UK-based consumers are eligible for Pay Later offers across most of our integrations. As a merchant, you're eligible to promote Pay in 3 if you are a UK-based PayPal merchant with a UK-legal business entity, a UK-facing website, and a one-time payment integration. At this time, promoting Pay Later offers is not available on PayPal vaulted payments or billing agreement integrations.
  • Pay later offers also follow the PayPal Acceptable Use Policy, which governs the usage of PayPal and prohibits the use of PayPal and pay later offers for certain types of transactions, such as real money gaming and firearms.
  • Please note that while messaging can be displayed on your website to help promote Pay Later offers to your customers, no additional content, wording, marketing, or other material should be created by you to encourage use of this product. PayPal reserves the right to take action in accordance with the User Agreement.

How it works

Pay Later messaging on a product detail page

Example web product page

Pay Later messaging at basket

Example web basket

Enable PayPal Commerce Platform

Note: PayPal Commerce requires CubeCart version 6. Please ensure the PayPal plugin is at least 1.5 for Pay Later offers and messaging.

  1. Find your PayPal Commerce plugin version on the CubeCart extensions page.
  2. Select the lightning bolt symbol next to your version and copy the Auto Install/Upgrade Token.
  3. Log in to your CubeCart v6 store admin panel.
  4. Go to Manage Extensions to enter your token.

How to enable Pay Later if you already are on PayPal Commerce Platform

If you are a merchant already using the PayPal Commerce Platform you may not have Pay Later options or messaging if you are not on the latest version of the extension. We recommend upgrading to the latest version following the steps below. Once at the latest version the Pay Later button and messaging will be active by default.

  1. Visit https://www.cubecart.com/extensions/plugins/paypal-commerce
  2. Click the thunderbolt icon next to the latest version.
  3. Copy the Auto Install/Upgrade Token to your clipboard.
  4. Login to the admin side of your store and navigate to Manage Extensions.
  5. Paste your token into the text field at the top of the page and click Go.
  6. The extension will update automatically and page will reload.
  7. On the list of installed extensions click on PayPal Commerce Platform to verify your settings.

How to enable Pay Later if you are on an old integration

Upgrading to the PayPal Commerce Platform from older integrations such as PayPal Standard is straightforward.

  1. Find your PayPal Commerce extension version on the CubeCart extensions page.
  2. Select the lightning bolt symbol next to your version and copy the Auto Install/Upgrade Token.
  3. Log in to your CubeCart v6 store admin panel.
  4. Go to Manage Extensions to enter your token.
  5. From the list of installed extensions select PayPal Commerce Platform.
  6. Click the PayPal branded Connect button and follow the instructions.

Once complete your older integrations will be automatically disabled and Pay Later is enabled by default.

Customising the messaging layout & appearance

From the PayPal Commerce configuration page in the admin control panel of your store you can:

  • Enable or disable the Pay Later button.
  • Specify where you do and don’t want messaging to display.
  • Configure the messaging style.

Screenshot

To customize the look and feel of the button and text please expand the Advanced Settings section.

Screenshot

Pay Later messaging is assigned to the page by specifying the DOM element it attaches on to. This is defined by the config.foundation.json file. To customize this please rename the file to config.custom.json or replace custom with the folder name of the skin in use. The DOM elements can be edited from within the JSON object.

Test PayPal Commerce Platform in sandbox module

Please ensure the PayPal extension is at least 1.5 for the best Pay Later offers and messaging experience. If not please upgrade following the instructions in the previous section titled Enable PayPal Commerce Platform.

  1. If in Live Mode, select Disconnect your PayPal account.
  2. Open the modules/plugins/paypal_commerce/env.inc.php file. Change const ENV_SANDBOX = false to const ENV_SANDBOX = true.
  3. Connect your PayPal sandbox account.
  4. To switch back to live, repeat the first 3 steps and revert to true. Reconnect to your live account.

See also