Afterpay Gateway for WooCommerce


Give your customers the option to buy now and pay later with Afterpay. The “Afterpay Gateway for WooCommerce” plugin provides the option to choose Afterpay as the payment method at the checkout. It also provides the functionality to display the Afterpay logo and instalment calculations below product prices on category pages, individual product pages, and on the cart page. For each payment that is approved by Afterpay, an order will be created inside the WooCommerce system like any other order. Automatic refunds are also supported.


This section outlines the steps to install the Afterpay plugin.

Please note: If you are upgrading to a newer version of the Afterpay plugin, it is considered best practice to perform a backup of your website – including the WordPress database – before commencing the installation steps. Afterpay recommends all system and plugin updates to be tested in a staging environment prior to deployment to production.

  1. Login to your WordPress admin.
  2. Navigate to “Plugins > Add New”.
  3. Type “Afterpay” into the Keyword search box and press the Enter key.
  4. Find the “Afterpay Gateway for WooCommerce” plugin. Note: the plugin is made by “Afterpay”.
  5. Click the “Install Now” button.
  6. Click the “Activate” button.
  7. Navigate to “WooCommerce > Settings”.
  8. Click the “Checkout” tab.
  9. Click the “Afterpay” sub-tab.
  10. Enter the Merchant ID and Secret Key that were provided by Afterpay for Production use.
  11. Save changes.


What do I do if I need help?

Please visit the official Afterpay Help Centre online. Most common questions are answered in the FAQ. There is also the option to create a support ticket if necessary.


October 31, 2019
Since installing the Afterpay Gateway for WooCommerce, I have been very happy with how it works on my website. It works as expected, and my customers have not had any technical issues while checking out and love using it as a payment method. It took a bit of customisation to reposition the instalment text where I wanted it on the pages, but this was simple to achieve from within the plugin settings and the Afterpay support team were able to assist me with how to make this update. The plugin is being actively updated and improved as it periodically prompts me to update to a new version, and the Afterpay support team have been very responsive and helpful with my enquiries.
June 4, 2019
Over 3 weeks now with no response to mine or other users threads in the support forum. The plugin has cron tasks scheduled to run every 7 seconds (whats up with that?) The plugin doesn't follow woo guidelines (I had to force a string of '.' to identify an IPN call to make it compatible with other plugins that do follow the guidelines)
April 15, 2019
This is the official plugin, and it work as you would expect it to. I've added to to a bunch of sites without issue.
Read all 3 reviews

Contributors & Developers

“Afterpay Gateway for WooCommerce” is open source software. The following people have contributed to this plugin.




Release Date: Tuesday, 12 Nov 2019

  • Tested up to WordPress 5.3 with WooCommerce 3.8.
  • Fixed a checkout challenge affecting some US customers on version 2.1.2.
  • Removed a legacy admin notice containing a reference to a WooThemes plugin.


Release Date: Thursday, 31 Oct 2019

  • Tested up to WordPress 5.3 with WooCommerce 3.8.
  • Added a notification in the admin when the plugin has been updated and the configuration needs to be reviewed.
  • Added a “Restore Defaults” button for customisations to the plugin configuration.
  • Simplified the redirection process between the WooCommerce checkout page and the Afterpay payment screenflow.
  • Revised the conditions for triggering the Afterpay messaging that applies to products outside the merchant’s Afterpay payment limits.
  • Revised the conditions controlling the inclusion of Afterpay as an available payment method, so that Afterpay does not appear if the currency has been changed by a third party plugin.
  • Removed the dependency on serialisation of the WC_Checkout object.
  • Removed the dependency on the PHP parse_ini_file function.


Release Date: Friday, 30 Aug 2019

  • Tested up to WordPress 5.3 with WooCommerce 3.7.
  • Improved support for orders without shipping addresses.


Release Date: Tuesday, 13 Aug 2019

  • Tested up to WordPress 5.3 with WooCommerce 3.7.
  • Revised checkout flow for WooCommerce 3.6+.
  • Added a Compatibility Mode to minimise conflicts with third party plugins.
  • Added an interface to customise hooks and priorities.
  • Replaced idempotent retry processes with extended timeouts.
  • Extended logging in Debug Mode.
  • Improved handling of Afterpay assets on product variants and related products.
  • Improved jQuery version checking.
  • Improved handling of non-JSON API responses.


Release Date: Wednesday, 01 May 2019

  • Improved support for quotes and special characters used in product attributes and checkout fields.


Release Date: Wednesday, 19 December 2018

  • Reduced logging of unnecessary notices.
  • Improved support for custom meta fields on WooCommerce order line items.


Release Date: Tuesday, 11 September 2018

  • Improved support for custom meta fields for WooCommerce orders.
  • Improved compatibility with third-party currency switcher plugins.
  • Improved handling of WooCommerce order line items.


Release Date: Wednesday, 29 August 2018

  • Improved support for Variable Products.
  • Improved handling of network challenges in scheduled background tasks.


Release Date: Thursday, 19 July 2018

  • Added support for Afterpay assets to display on product and cart pages where prices are outside merchant payment limits.
  • Added support for multi-market use in Australia, New Zealand and United States.
  • Improved logging of network challenges.
  • Improved Afterpay JavaScript initialisation to cater for transactions from Australia, New Zealand and the United States.
  • Improved handling of Afterpay pop-up assets – deprecated the use of fancyBox.
  • Improved reliability of payment capture and refunds – implemented a retry mechanism in the unlikely event of network challenges.
  • Updated plugin configuration defaults for each regional market (AU/NZ/US).
  • Updated assets for Afterpay United States.


Release Date: Friday, 13 July 2018

  • Added support for merchants in New Zealand and the United States.
  • Added support for the calculation of instalment amounts at the product level for variably priced products.
  • Added support for orders that do not require shipping addresses.
  • Added support for optionally including Afterpay elements on the cart page.
  • Added a shortcode for rendering the standard Afterpay logo, with support for high pixel-density screens and a choice of 3 colour variants.
  • Improved ease of installation and configuration.
  • Improved presentation of checkout elements for various screen sizes.
  • Improved customisability for developers.
  • Changed order button to read “Proceed to Afterpay” when configured to use the “v1 (recommended)” API Version.
  • Changed the payment declined messages to include the phone number for the Afterpay Customer Service Team.
  • Changed the default HTML for category pages and individual product pages to take advantage of the latest features.
  • Changed the plugin name from “WooCommerce Afterpay Gateway” to “Afterpay Gateway for WooCommerce”.
  • Removed deprecated CSS.


Release Date: Monday, 10 April 2017

  • Improved compatibility with WooCommerce 3 – resolution of the “invalid product” checkout challenge.