Magento 1

📘

Clearpay is available for Magento 1 merchants with a store address in these countries:

🇬🇧 UK
🇫🇷 France
🇮🇹 Italy
🇪🇸 Spain

As Afterpay in these countries.
🇺🇸 United States
🇦🇺 Australia
🇳🇿 New Zealand
🇨🇦 Canada

Before you begin

  • Ensure that your Magento version is 1.7 or later for Magento Community Edition or 1.14 or later for Magento Enterprise Edition.
  • The store currency must match the region where your Clearpay account is registered. From the Magento Admin, navigate to System > Configuration > Currency Setup > Currency Options. Set Base Currency, Default Display Currency and Allowed Currencies to the currency that matches your Clearpay account region.
  • Go to System > Configuration > General. Set Postcode and State to mandatory. Ensure that postal code is not configured as optional for any country that Clearpay is being applied to. Include your Clearpay account region in State is required for. Click Save Config.

Installing and configuring the Clearpay extension

  1. Download the Clearpay extension from the GitHub repository here.
  2. Unzip the extension and save it into your Magento 1 root directory.
  3. Flush the Magento system cache by logging into your Magento Admin. Navigate to System > Cache Management. Select Flush Cache Storage.
  4. Navigate to System > Configuration > Sales > Payment Methods > Clearpay.

📘

Store Level

Please navigate to the correct store level
It's advised to not use 'Default Store Level'

  1. Set the following values:

Setting

Value

Enabled

Yes - Clearpay turned on
No - Clearpay disabled

API Mode

Sandbox - for development or staging environments
Production - for your live website

Merchant ID

Your 9 digit Sandbox or Production Clearpay Merchant ID

Merchant Key

Your Sandbox or Production Clearpay Secret Key

Minimum Order Total / Maximum Order Total

Click Update Limits button to obtain your current minimum and maximum Clearpay order thresholds

Sort Order

Order of payment methods at checkout (optional)

  1. Navigate to System > Configuration > Sales > Clearpay.
  2. Set the following values:

Setting

Value

Debug Mode

Yes - Debug logs are written to [Magento]/var/log/clearpay.log
No - Disabled

Show instalments amount on product pages

Yes

Product page price block selectors

All CSS selectors of elements that hold product prices on PDP pages

Show Clearpay on Cart Page

Yes - Magento Checkout - Proceed to checkout as pere normal payment flow
Yes - Afterpay Express Checkout - enable Aftepray express checkout from cart page
No - Afterpay will not display at Cart page

Express Checkout Public Key

Key to be provided by your Afterpay Delivery Manager to enable Afterpay Express Payments

Payment Method Display

Show Instalments Amount

Yes

Payment Display Method

"Lightbox
Redirect"

  1. Flush the Magento system cache again. Navigate to System > Cache Management. Select Flush Cache Storage.

Updating the Clearpay extension

  1. Remove old Clearpay extension files:

File/Folder paths

  1. Remove folder: [MAGENTO]/app/code/community/Clearpay/Clearpay
  1. Remove folder: [MAGENTO]/app/design/adminhtml/default/default/template/clearpay
  1. Remove file: [MAGENTO]/app/design/frontend/base/default/layout/clearpay.xml
  1. Remove folder: [MAGENTO]/app/design/frontend/base/default/template/clearpay
  1. Remove file: [MAGENTO]/app/etc/modules/Clearpay_Clearpay.xml
  1. Remove folder: [MAGENTO]/js/Clearpay
  1. Remove folder: [MAGENTO]/skin/frontend/base/default/clearpay
  1. Download and install the latest version of the Clearpay extension as described above.