Clearpay is offered by over 85,000 of the world’s best retailers and has more than 14 million active customers globally. The service is currently available in the United Kingdom, as well as Australia, Canada, New Zealand, the United States where its called Afterpay.
Getting Started
↑ Back to topWordPress Version
↑ Back to top

- Navigate to:Â WordPress Admin > WooCommerce > Settings > General
- Under ‘Currency options’, the ‘Currency’ must be:
- Pound sterling (£)
- Euro(€)

Installation
↑ Back to top- Navigate to: WordPress Admin Dashboard
- Navigate to: Plugins > Add New

- Type ‘Clearpay’ into the Keyword search box.

- Locate the ‘Clearpay Gateway for WooCommerce’ plugin and click ‘Install Now’.

- Once the installation is complete, click the ‘Activate’ button.

Configure Plugin
↑ Back to top- Navigate to: WordPress Admin Dashboard
- Navigate to: Plugins > Installed Plugins
- Locate the ‘Clearpay Gateway for WooCommerce’ in the plugin list and click the ‘Settings’ button.

- Navigate to the ‘Core Configuration’ section.

- Enter the Merchant ID provided by Clearpay into the ‘Merchant ID’ field.

- Enter the Secret Key provided by Clearpay into the ‘Secret Key’ field.

- Click the ‘Save changes’ button at the bottom of the page.

Notes
The ‘Sandbox’ API Environment is only applicable for dedicated test websites. Advise your Clearpay Account Manager should test credentials be required.
Update Plugin
↑ Back to top
- Navigate to: WordPress Admin Dashboard
- Navigate to: Plugins > Installed Plugins
- Locate the ‘Clearpay Gateway for WooCommerce’ in the plugin list. Note: The version update notification will be displayed, with links to the release details and to updated the plugin.
- Click the ‘update now’ link.



Express Checkout
↑ Back to top
Checkout Steps for Customers
↑ Back to top
Enable or Disable Express Checkout
↑ Back to top- Navigate to: WordPress Admin Dashboard
- Navigate to: Plugins > Installed Plugins
- Locate the ‘Clearpay Gateway for WooCommerce’ in the plugin list and click the ‘Settings’ button.
- Find ‘Express Checkout Configuration’ and toggle the checkbox.

Check Product Eligibility
↑ Back to topExample (PHP):
/*** @param bool $bool_result* @param WC_Product $product*/function clearpay_ips_callback( $bool_result, $product ) {# My custom products don’t support Clearpay.if ($product->get_type() == ‘my-custom-product-type’) {$bool_result = false;} return $bool_result;}add_filter( ‘clearpay_is_product_supported’, ‘clearpay_ips_callback’, 10, 2 );
Display on Individual Product Pages
↑ Back to topclearpay_html_on_individual_product_pages
*Note: This is intended for altering the HTML based on custom, varying criteria. For setting the default HTML, use the admin interface under: “WooCommerce > Settings > Checkout > Clearpay”. For hiding the HTML for a subset of products, consider using the following filter hook: clearpay_is_product_supported
Example (PHP):
/** * @param string $str_html* @param WC_Product $product* @param float $price*/ function clearpay_hoipp_callback( $str_html, $product, $price ) {   # Show a different message for products below a custom threshold.   # Note that this will only be called if the product price is within   # the payment limits defined at the account level.   if ($price < 10.00) {$str_html = “<p>Shop Now, Pay Later with Clearpay. Supported for orders over $10.00</p>”; }   return $str_html;}add_filter( ‘clearpay_html_on_individual_product_pages’, ‘clearpay_hoipp_callback’, 10, 3 );
Display on Category Pages and Search Results
↑ Back to topclearpay_html_on_product_thumbnails
*Note: This is intended for altering the HTML based on custom, varying criteria. For setting the default HTML, use the admin interface under: “WooCommerce > Settings > Checkout > Clearpay”. For hiding the HTML for a subset of products, consider using the following filter hook:Â
To filter the HTML content rendered on the cart page, use the following filter hook:
To filter the HTML content rendered at the checkout, use the following filter hook:Â
As discussed in the section entitled “Theme Support” above, various WooCommerce hooks are assumed to be implemented by the active WordPress theme. Clearpay methods can be detached from their default hooks and reattached to different hooks, or to the same hooks with different priorities. Since version 2.1.0, hooks and priorities can be customised from within the plugin settings page.
clearpay_is_product_supported
Display on the Cart Page
↑ Back to topclearpay_html_on_cart_page
Display at the Checkout
↑ Back to topclearpay_html_at_checkout
Customising Hooks & Priorities
↑ Back to top
Shortcodes
↑ Back to topClearpay Product Logo
This is provided for rendering an advancedÂimg
tag for displaying the Clearpay logo on individual product pages. The img
 tag uses the srcset
 attribute to include 3 different resolutions of the logo for screens with varying pixel density ratios.
Or make 4 payments [OF_OR_FROM] [AMOUNT] with [clearpay_product_logo]
There are 3 different versions of the logo to chose from:
colour
black
white
colour
. This can be overridden by including a theme
attribute inside the shortcode. For example, if you have a dark themed website and wish to use the white mono version of the Clearpay logo:
Or make 4 payments [OF_OR_FROM] [AMOUNT] with [clearpay_product_logo theme=”white”]
FAQ
↑ Back to topWhy is Clearpay not showing on product pages?
↑ Back to topwoocommerce_single_product_summary
Note: The ‘Payment Info on Individual Product Pages’ setting must also be enabled, and the product must be eligible. For advanced configuration, see our hooks documentation
Why is Clearpay not showing on category and search result pages?
↑ Back to topwoocommerce_after_shop_loop_item_title
Note: The “Payment Info on Category Pages” setting must also be enabled, and the product/s must be eligible. For advanced configuration, see our hooks documentation
Why is Clearpay not showing on the cart page?
↑ Back to topwoocommerce_cart_totals_after_order_total
Note: The “Payment Info on Cart Page” setting must also be enabled, and all the cart items must be eligible. For advanced configuration, see our hooks documentation
When do I get paid?
↑ Back to topSettlement payments are processed 1-5 business days after the order date, with banks typically taking an additional day or two to deposit the settlement into your company account.