PHPackages                             scanpay/magento2 - 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. [Payment Processing](/categories/payments)
4. /
5. scanpay/magento2

ActiveMagento2-module[Payment Processing](/categories/payments)

scanpay/magento2
================

Scanpay module for Magento 2

v1.1.3(3y ago)09MITPHPPHP ~5.5|~5.6|~7

Since Mar 5Pushed 3y agoCompare

[ Source](https://github.com/scanpay/magento2-scanpay)[ Packagist](https://packagist.org/packages/scanpay/magento2)[ Docs](https://scanpay.dk)[ RSS](/packages/scanpay-magento2/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Scanpay for Magento
===================

[](#scanpay-for-magento)

We have developed a payment module for [Magento](https://github.com/magento/magento2), that allows you to accept payments in your Magento store via our [API](https://docs.scanpay.dk/). Magento is an open-source e-commerce platform written in PHP and owned by Adobe.

You can always e-mail us at  or chat with us on IRC at libera.chat #scanpay ([webchat](https://web.libera.chat/#scanpay)).

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

[](#installation)

You need PHP version &gt;= 5.6 with php-curl enabled. The module is available at [Packagist](https://packagist.org/packages/scanpay/magento2). You can install the module with Composer or by manually uploading the files. Magento recommends that you use Composer. You can find a guide on how to install Composer [here](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos).

1. Navigate to your Magento folder and download the module with Composer:
    `composer require scanpay/magento2`
2. Enable the module and clear the static view files:
    `php bin/magento module:enable Scanpay_PaymentModule --clear-static-content`
3. Register the extension:
    `php bin/magento setup:upgrade`
4. Recompile your Magento store with the new module:
    `php bin/magento setup:di:compile`
5. Verify that the extension is enabled:
    `php bin/magento module:status`

### Configuration

[](#configuration)

Before you begin, you need to generate an API key in our dashboard ([here](https://dashboard.scanpay.dk/settings/api)). Always keep your API key private and secure.

1. Enter your Magento admin and navigate to `Stores > Configuration > Sales > Payment Methods`.
2. Find the payment method called *"Scanpay"* and enable it.
3. Insert your API key in the *"API-key"* field.
4. Copy the contents of the *"Ping URL"* field, and insert into the *"Ping URL"* field in our dashboard ([here](https://dashboard.scanpay.dk/settings/api/setup?module=magento)).

Folder hierarchy
----------------

[](#folder-hierarchy)

### /view

[](#view)

The `/view` folder defines the layout and javascript of the module. The actual HTML form presented for the customer can be found at `/view/frontend/web/template/payment/form.html`.

`/view/frontend/web/js/view/payment/method-renderer/scanpaypaymentmodule.js` defines the javascript which is run when the customer places an order.

This javascript creates the order and makes an AJAX request to the `/Controller/Payment/GetPaymentURL.php` containing the order id.

### /Controller

[](#controller)

The `/Controller` folder defines the publically served PHP pages. It's served at an URL defined by `/etc/frontend/routes.xml`. `/Controller/Payment/GetPaymentURL.php` gathers order parameters from Magento and uses `/Model/ScanpayClient.php` to send an request to the Scanpay API. Upon success it will return a payment url which the webshop customer should be redirected to.

### /Model

[](#model)

The `/Model` folder defines utility classes used by other PHP files. For instance it containts `ScanpayClient.php` which does the actual http request to the Scanpay API using PHP-curl.

### /etc

[](#etc)

The `/etc` folder defines module dependencies, module configuration, module naming and the layout of the admin panel module configuration.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~399 days

Total

3

Last Release

1458d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/57f5e666ece8abf8984946303eedd88849dcb83376db9ae290c9c9594ca2fafa?d=identicon)[scanpay](/maintainers/scanpay)

---

Top Contributors

[![cblach](https://avatars.githubusercontent.com/u/5312687?v=4)](https://github.com/cblach "cblach (116 commits)")[![ulrikmoe](https://avatars.githubusercontent.com/u/1418021?v=4)](https://github.com/ulrikmoe "ulrikmoe (3 commits)")

---

Tags

magentomagento-extensionpayment-gatewaypaymentsmagentopaymentsscanpay

### Embed Badge

![Health badge](/badges/scanpay-magento2/health.svg)

```
[![Health](https://phpackages.com/badges/scanpay-magento2/health.svg)](https://phpackages.com/packages/scanpay-magento2)
```

###  Alternatives

[amzn/amazon-pay-sdk-php

Amazon Pay SDK (PHP)

20512.1M3](/packages/amzn-amazon-pay-sdk-php)[unicodeveloper/laravel-paystack

A Laravel Package for Paystack

650975.6k11](/packages/unicodeveloper-laravel-paystack)[ignited/laravel-omnipay

Integrates Omnipay with Laravel and provides an easy configuration.

5211.1M12](/packages/ignited-laravel-omnipay)[recurly/recurly-client

The PHP client library for the Recurly API

1736.3M7](/packages/recurly-recurly-client)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[amzn/amazon-pay-api-sdk-php

Amazon Pay API SDK (PHP)

505.1M9](/packages/amzn-amazon-pay-api-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
