PHPackages                             newism/commerce-afterpay - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. newism/commerce-afterpay

AbandonedArchivedCraft-plugin

newism/commerce-afterpay
========================

Afterpay gateway for Craft Commerce 2 &amp; 3

2.2.3(4y ago)16942[4 issues](https://github.com/newism/commerce-afterpay/issues)proprietaryPHP

Since Feb 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/newism/commerce-afterpay)[ Packagist](https://packagist.org/packages/newism/commerce-afterpay)[ RSS](/packages/newism-commerce-afterpay/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (8)Dependencies (2)Versions (11)Used By (0)

[![Afterpay for Craft Commerce icon](./src/icon.svg)](./src/icon.svg)

Afterpay plugin for Craft Commerce
==================================

[](#afterpay-plugin-for-craft-commerce)

This plugin provides an [Afterpay](https://www.afterpay.com/en-AU/index) gateway for [Craft Commerce](https://craftcms.com/commerce) (2 &amp; 3).

Features
--------

[](#features)

- AU, NZ and US Regions (AU tested, NZ and US Pending SAT)
- Full and Partial refund support
- Authorisation and Total mismatch detection (passes Afterpay SAT)
- User-Agent headers (passes Afterpay SAT)
- Excellent Afterpay API response debugging
- Native Commerce 2 Integration (no OmniPay abstraction)

Screenshots
-----------

[](#screenshots)

[![Settings](./resources/images/settings.png)](./resources/images/settings.png)[![Transactions](./resources/images/transactions.png)](./resources/images/transactions.png)[![Transaction details](./resources/images/transaction-details.png)](./resources/images/transaction-details.png)

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.1 or later and Craft Commerce 2.x or Craft Commerce 3.x.

Installation
------------

[](#installation)

### Plugin Store

[](#plugin-store)

[Direct link to plugin store](https://plugins.craftcms.com/newism-commerce-afterpay)

To install `Afterpay for Craft Commerce`, navigate to the Plugin Store section of your Craft control panel, search for `Afterpay for Craft Commerce`, and click the Try button.

### Composer

[](#composer)

You can also add the package to your project using Composer.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require newism/commerce-afterpay

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Afterpay.

Configuring Afterpay
--------------------

[](#configuring-afterpay)

First you'll need to setup a merchant account. This can be done by [emailing Afterpay](https://www.afterpay.com/en-AU/merchant-enquiry).

Once you have a merchant account you'll be provided with a `Merchant ID` and `Merchant Key`.

To add the Afterpay payment gateway, go to Commerce → Settings → Gateways, create a new gateway, and set the gateway type to “Afterpay”.

You may then decide to configure your Afterpay gateway using a [config file](https://docs.craftcms.com/commerce/v2/gateway-config.html#gateway-configuration). An example file looks like:

```
