This module adds the Clearpay payment gateway into your Aero Commerce application. The driver supports immediate and delayed capture of funds, along with refunding through your Aero Commerce admin.
Before you install the module, contact Clearpay and ask for your sandbox credentials. Once you have these credentials, add them to your .env as follows:
Once you have the required credentials in place, do the following:
clearpay and the Available box is checked.By default, Clearpay will charge the customer immediately once their order is confirmed. You can instead defer these charges and capture them manually instead. To do this:
.env:or by check the Require manual capture of funds box at Settings > Clearpay in your admin.
In production, all capture requests must be complete within 13 days of the order placement date. Any remaining amounts are automatically voided after this, and the customer’s instalments updated to reflect the remaining amount.
There is a task configured to run daily that queries Clearpay for the minimum and maximum order values they accept on your account. Clearpay use this information to decide whether Clearpay appears to your customers as a payment option during checkout.
To ensure this task can run:
.env:The numbers retrieved from this request can be overridden by the Aero Commerce admin. To do this navigate to Settings > Clearpay and set the minimum/maximum spend. But you must stay within the Clearpay-supplied values.
You can send shipping information to Clearpay whenever an order is fulfilled through the Aero Commerce admin. To enable this:
.env:clearpay_priority and has a value of either STANDARD or EXPRESS.A product is eligible for Clearpay if the sale price falls within the limits configured on your Clearpay account. The final order total must also fall within this value in order for Clearpay to appear during checkout.
Clearpay do not allow customers to buy certain types of product. Contact us for a list of these prohibited products and services.
If one or more of your products is prohibited by Clearpay, you must disable Clearpay for these products. To do this disablement you add a tag that can be applied to a product or variant. You can tag a manufacturer that disables all products from that manufacturer. You can also tag a category that disables all products within that category and any child categories.
For example, if you already have an Internal Tags or similar group, you could add a Disable Clearpay tag to this. If you need to add a new tag, follow these steps:
To ensure Clearpay’s messaging widget can be displayed wherever called, do the following:
<head> tag:If a product is eligible for Clearpay, a variable eligibleForClearpay is set to true on your product page. You can add a section to display the appropriate messaging by wrapping it inside an if.
The variables clearpayBadgeTheme and clearpayModalTheme are also be exposed to your product page. Include these in any messaging widgets displayed. This ensures consistent theming across your site.
Use the example below to help you. The product price should be wrapped inside a span or similar tag with a selector that can be specified in data-amount-selector. This allows the widget to update as product options are changed.
For more information about what you might want to display here, see the Clearpay Messaging Widget page.
Once Clearpay are happy for you to go live and have supplied you with your live credentials, to the following:
.env or settings:.env to CLEARPAY_TEST_MODE=false.Clearpay is available for Aero Commerce merchants with a store address in these countries:
🇬🇧 UK