{"id":36993596,"url":"https://github.com/scanpay/magento2-scanpay","last_synced_at":"2026-01-13T23:45:47.853Z","repository":{"id":62540950,"uuid":"65038637","full_name":"scanpay/magento2-scanpay","owner":"scanpay","description":"Scanpay payment module for Magento.","archived":false,"fork":false,"pushed_at":"2022-05-11T22:27:17.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-28T21:01:49.758Z","etag":null,"topics":["magento","magento-extension","payment-gateway","payments"],"latest_commit_sha":null,"homepage":"https://docs.scanpay.dev","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scanpay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-05T17:58:17.000Z","updated_at":"2023-07-12T10:04:18.000Z","dependencies_parsed_at":"2022-11-02T15:32:42.881Z","dependency_job_id":null,"html_url":"https://github.com/scanpay/magento2-scanpay","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/scanpay/magento2-scanpay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scanpay%2Fmagento2-scanpay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scanpay%2Fmagento2-scanpay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scanpay%2Fmagento2-scanpay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scanpay%2Fmagento2-scanpay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scanpay","download_url":"https://codeload.github.com/scanpay/magento2-scanpay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scanpay%2Fmagento2-scanpay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["magento","magento-extension","payment-gateway","payments"],"created_at":"2026-01-13T23:45:47.729Z","updated_at":"2026-01-13T23:45:47.841Z","avatar_url":"https://github.com/scanpay.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scanpay for Magento\n\nWe 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.\n\nYou can always e-mail us at [help@scanpay.dk](mailto:help@scanpay.dk) or chat with us on IRC at libera.chat #scanpay ([webchat](https://web.libera.chat/#scanpay)).\n\n## Installation\n\nYou need PHP version \u003e= 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).\n\n1. Navigate to your Magento folder and download the module with Composer:\\\n`composer require scanpay/magento2`\n\n2. Enable the module and clear the static view files:\\\n`php bin/magento module:enable Scanpay_PaymentModule --clear-static-content`\n\n3. Register the extension:\\\n`php bin/magento setup:upgrade`\n\n4. Recompile your Magento store with the new module:\\\n`php bin/magento setup:di:compile`\n\n5. Verify that the extension is enabled:\\\n`php bin/magento module:status`\n\n\n### Configuration\n\nBefore 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.\n\n1. Enter your Magento admin and navigate to `Stores \u003e Configuration \u003e Sales \u003e Payment Methods`.\n2. Find the payment method called *\"Scanpay\"* and enable it.\n3. Insert your API key in the *\"API-key\"* field.\n4. 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)).\n\n## Folder hierarchy\n\n### /view\nThe `/view` folder defines the layout and javascript of the module.\nThe actual HTML form presented for the customer can be found at `/view/frontend/web/template/payment/form.html`.\n\n`/view/frontend/web/js/view/payment/method-renderer/scanpaypaymentmodule.js` defines the javascript which is run when the customer places an order.\n\nThis javascript creates the order and makes an AJAX request to the `/Controller/Payment/GetPaymentURL.php` containing the order id.\n\n### /Controller\nThe `/Controller` folder defines the publically served PHP pages.\nIt's served at an URL defined by `/etc/frontend/routes.xml`.\n`/Controller/Payment/GetPaymentURL.php` gathers order parameters from Magento and uses `/Model/ScanpayClient.php` to send an request to the Scanpay API.\nUpon success it will return a payment url which the webshop customer should be redirected to.\n\n### /Model\nThe `/Model` folder defines utility classes used by other PHP files.\nFor instance it containts `ScanpayClient.php` which does the actual http request to the Scanpay API using PHP-curl.\n\n### /etc\nThe `/etc` folder defines module dependencies, module configuration, module naming and the layout of the admin panel module configuration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscanpay%2Fmagento2-scanpay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscanpay%2Fmagento2-scanpay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscanpay%2Fmagento2-scanpay/lists"}