# zip/magento2

> Zip Payment Module for Magento 2

`composer require zip/magento2`

Canonical URL: https://packagento.com/zip/magento2

## At a glance

- **Vendor**: zip (https://packagento.com/zip.md)
- **Latest version**: 1.2.11 — released 2025-11-18
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/zip/magento2 and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require zip/magento2:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Zip Payment Module for Magento 2

## README

Zip gives customers the ability to shop now and pay later with no interest while you as the merchant get paid immediately. Customers select Zip at checkout and get approved instantly and shop securely. Zip is fully integrated with the store’s online checkout and can integrate seamlessly with your store directly via API or by using one of our platform plugins.

### Prerequisites

- PHP 7 or above
- Configuration credentials
- Composer (optional)

### Installation instructions

#### Install via SFTP or file upload

- You need to download code from current repo
- Put the current repo files into folder `/yourMagento2root/app/code/Zip/ZipPayment/`
- Then follow the normal plugin installation below without the composer require command

#### Install using Composer

To install the extension via [Composer](http://getcomposer.org/), run

- `cd <your Magento install dir>`
- `composer require zip/magento2`
- `php bin/magento module:status` (Check if Zip_ZipPayment module is disabled)
- `php bin/magento module:enable Zip_ZipPayment` (enabled plugin if disabled)
- `php bin/magento setup:upgrade`
- `php bin/magento setup:di:compile`
- `php bin/magento setup:static-content:deploy`

To upgrade Existing Modules

- `composer update zip/magento2`
- `php bin/magento setup:di:compile`
- `php bin/magento c:c`
- `php bin/magento setup:static-content:deploy`

#### Install using Magento Component Manager

Note:- This extension is not yet available in the Magento Marketplace. This section will be updated once it is released in the marketplace.

### Configuration

#### Payment Section

1. Contact Zip instegrations support through one of the following channels depending on your region to request your configuration credentials:
    - **UK: integrationsuk@zip.co**
    - **NZ: integrationsnz@zip.co**
    - **AU: integrations@zip.co**
1. Open the Magento Admin
1. Click    the Stores  icon    in  the left    hand menu   and from    there   choose  Settings    >   Configuration
1. The  configuration   page    will    open.   From  the little  menu    on  the left    hand    side    of  this    screen  you must    click   Sales  and then
choose  Payment Methods when    it  expands.
1. On   the Payment Methods page,   click   Other   Payment Methods so  it  expands.

![Alt text](https://static.zip.co/github-images/payment-section-2.jpg "Payment Section")

1. Set Enable  to  Yes and a   title   for the payment method  “Zip"
1. Enter the   Private Key and Public  Key.
1. Set  payment action to Capture, or Authorise if you want to authorise  on checkout completion and capture later

#### Note: Authorise is only available for AU region only

1. Set  log settings    to  Info or Debug if you want to log all the debug information as well.
1. Set  environment to  either  Sandbox (for    your    test    or  development site)   or  Production  (for    your    live    website)
1. Set  Sort    Order   to  0 to place the payment method on top.

#### Marketing Banners and Widgets Section

![Alt text](https://static.zip.co/github-images/marketing-section.png "Markting Banners and Widgets Section")

1. Scroll down  and expand  Marketing   Banners and Widgets section
1. Expand   everything  and set all options to Yes/No as per your requirement.
1. Click    Save    Config  up  the top

#### Questions and feedback

If you have any questions concerning this product or the implementation please contact integrations@zip.co for assistance.

## Recent Versions

| Version | Released |
|---|---|
| 1.2.11 | 2025-11-18 |
| 1.2.10 | 2025-08-21 |
| 1.2.9 | 2025-04-03 |
| 1.2.8 | 2025-01-21 |
| 1.2.7 | 2024-12-09 |
| 1.2.5 | 2024-03-26 |
| 1.2.3 | 2023-05-25 |
| 1.2.2 | 2022-08-29 |
| 1.2.1 | 2022-06-21 |
| 1.2.0 | 2022-06-16 |

Showing 10 of 22 versions. Full release history on https://packagento.com/zip/magento2.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| ext-curl | * |
| php | >=8.1 |

## Quality

Latest release (1.2.11) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Warning | 287 | 287 warnings (ruleset: Magento2) — 74 auto-fixable with phpcbf |
| PHPMD | Warning | 277 | 277 rule violations (MissingImport:99, UndefinedVariable:39, CyclomaticComplexity:26, NPathComplexity:25, UnusedLocalVariable:21) |
| Cpd | Warning | 19 | 19 duplicated chunks spanning 1246 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 404 | 404 | – | – |
| 2.4.8 | – | 405 | 405 | – |
| 2.4.9 | – | – | 405 | 405 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["zip/magento2"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

zip is a Magento 2 vendor on Packagento. See https://packagento.com/zip.md for their full catalogue.

