# controlaltdelete/magento2-colissimo-hyva-checkout

> Hyvä Checkout compatibility module for LaPoste Colissimo relay point selection

`composer require controlaltdelete/magento2-colissimo-hyva-checkout`

Canonical URL: https://packagento.com/controlaltdelete/magento2-colissimo-hyva-checkout

## At a glance

- **Vendor**: controlaltdelete (https://packagento.com/controlaltdelete.md)
- **Latest version**: v1.0.0 — released 2026-04-20
- **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/controlaltdelete/magento2-colissimo-hyva-checkout 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 controlaltdelete/magento2-colissimo-hyva-checkout:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Hyvä Checkout compatibility module for LaPoste Colissimo relay point selection

## README

A Magento 2 module that integrates Colissimo relay point selection into the [Hyvä Checkout](https://www.hyva.io/hyva-checkout.html) experience.

Developed by **[Control Alt Delete BV](https://www.controlaltdelete.dev/checkout-services/hyva-checkout)** — a Magento and Hyvä specialist agency with deep expertise in [Hyvä Checkout integrations](https://www.controlaltdelete.dev/checkout-services/hyva-checkout). We've built production-grade shipping, payment, and pickup-point integrations for merchants across Europe, and we hold ourselves to a high bar: the proof is in the pudding — this repo ships with automated end-to-end tests so you know the checkout flow keeps working.

This module is an independent, community-developed integration. It is not affiliated with, endorsed by, or developed in partnership with La Poste or Colissimo.

---

### Screenshots

<table>
  <tr>
    <td align="center" width="33%">
      <a href="https://github.com/controlaltdelete-nl/magento2-colissimo-hyva-checkout/raw/main/docs/overview-onepage-checkout.png" target="_blank"><img src="docs/thumbnails/overview-onepage-checkout.png" width="300" alt="Onepage checkout implementation" /></a><br/>
      <sub>Onepage checkout</sub>
    </td>
    <td align="center" width="33%">
      <a href="https://github.com/controlaltdelete-nl/magento2-colissimo-hyva-checkout/raw/main/docs/overview-multistep-checkout.png" target="_blank"><img src="docs/thumbnails/overview-multistep-checkout.png" width="300" alt="Multistep checkout implementation" /></a><br/>
      <sub>Multistep checkout</sub>
    </td>
    <td align="center" width="33%">
      <a href="https://github.com/controlaltdelete-nl/magento2-colissimo-hyva-checkout/raw/main/docs/delivery-method-label.png" target="_blank"><img src="docs/thumbnails/delivery-method-label.png" width="300" alt="Delivery method label in checkout" /></a><br/>
      <sub>Delivery method label</sub>
    </td>
  </tr>
  <tr>
    <td align="center" width="33%">
      <a href="https://github.com/controlaltdelete-nl/magento2-colissimo-hyva-checkout/raw/main/docs/locations-searchbar.png" target="_blank"><img src="docs/thumbnails/locations-searchbar.png" width="300" alt="Address search bar for finding nearby relay points" /></a><br/>
      <sub>Address search</sub>
    </td>
    <td align="center" width="33%">
      <a href="https://github.com/controlaltdelete-nl/magento2-colissimo-hyva-checkout/raw/main/docs/colissimo-google-maps-locations.png" target="_blank"><img src="docs/thumbnails/colissimo-google-maps-locations.png" width="300" alt="Relay points displayed on Google Maps" /></a><br/>
      <sub>Google Maps view</sub>
    </td>
    <td align="center" width="33%">
      <a href="https://github.com/controlaltdelete-nl/magento2-colissimo-hyva-checkout/raw/main/docs/colissimo-list-pick-up-points.png" target="_blank"><img src="docs/thumbnails/colissimo-list-pick-up-points.png" width="300" alt="List of available Colissimo pick-up points" /></a><br/>
      <sub>Pick-up points list</sub>
    </td>
  </tr>
  <tr>
    <td align="center" width="33%">
      <a href="https://github.com/controlaltdelete-nl/magento2-colissimo-hyva-checkout/raw/main/docs/colissimo-available-times.png" target="_blank"><img src="docs/thumbnails/colissimo-available-times.png" width="300" alt="Opening hours for a relay point" /></a><br/>
      <sub>Opening hours</sub>
    </td>
    <td align="center" width="33%">
      <a href="https://github.com/controlaltdelete-nl/magento2-colissimo-hyva-checkout/raw/main/docs/selected-relay-point.png" target="_blank"><img src="docs/thumbnails/selected-relay-point.png" width="300" alt="Selected relay point" /></a><br/>
      <sub>Selected relay point</sub>
    </td>
    <td width="33%"></td>
  </tr>
</table>

---

### Overview

When customers choose the Colissimo relay point (PR) shipping method during checkout, this module presents an interactive picker that lets them search for and select a nearby relay point -- either by entering an address, using their browser's geolocation, or browsing an embedded Google Map.

The selected relay point is saved to the quote and passed along to the order, making it available for fulfilment via the standard Colissimo module.

### Features

- Relay point search by address (with Google Places autocomplete) or by geolocation
- Interactive Google Map with markers for all available relay points
- List/map view toggle for browsing results
- Opening hours accordion per relay point
- Fully reactive UI using Magewire and Alpine.js
- Validates checkout step completion (customer must pick a point before proceeding)
- Stores selected relay point in the checkout session for downstream processing
- Admin configuration for Google Maps API key, default region, and map starting coordinates

### Requirements

| Dependency | Version |
|---|---|
| PHP | 8.1 or higher |
| Magento | 2.4.4 or higher |
| [La Poste Colissimo module](https://commercemarketplace.adobe.com/laposte-magento2-colissimo-module.html) | * |
| Hyvä Checkout | 1.3 or higher |
| Google Maps API key | -- |

The La Poste Colissimo module is **free** and must be downloaded and installed separately from the [Adobe Commerce Marketplace](https://commercemarketplace.adobe.com/laposte-magento2-colissimo-module.html). This module is a compatibility layer on top of it — it does not replace or include the Colissimo shipping logic itself.

A Google Maps API key with the following APIs enabled is required:

- Maps JavaScript API
- Places API
- Geocoding API

> **Note:** Billing must be enabled on your Google Cloud project, even if you stay within Google's free tier. Requests from a key that has no billing account attached will fail silently, and the map will render blank with an `ApiNotActivatedMapError` or similar message in the browser console.

### Installation

Install via Composer:

_(README truncated for .md surface. Full README on https://packagento.com/controlaltdelete/magento2-colissimo-hyva-checkout.)_

## Recent Versions

| Version | Released |
|---|---|
| v1.0.0 | 2026-04-20 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| hyva-themes/magento2-hyva-checkout | ^1.3 |
| laposte/magento2-colissimo-module | ^1.11 |
| magento/framework | ^103.0.4 |
| php | ^8.1 |

## Quality

Latest release (v1.0.0) 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 | not tested | not tested | – | – |
| 2.4.8 | – | not tested | not tested | – |
| 2.4.9 | – | – | not tested | not tested |


### 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 | Fail | 55 | 8 errors, 47 warnings (ruleset: Magento2) — 11 auto-fixable with phpcbf |
| PHPMD | Pass | 0 |  |
| Cpd | Pass | 0 |  |
| Composer validate | Pass | 0 |  |

#### 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 | Error | Error | – | – |
| 2.4.8 | – | Error | Error | – |
| 2.4.9 | – | – | Error | Error |


### 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 | N/A | 0 | no resolvable dependency tree to audit — Your requirements could not be resolved to an installable set of packages. Problem 1 |
| 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=["controlaltdelete/magento2-colissimo-hyva-checkout"],
  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

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

