Integration with Scanpay's payment gateway
This Magento 2 module allows a webshop to receive payments through the Scanpay payment gateway.
First you must install the module and then you must configure it.
There are multiple ways to install this module:
~$ composer require scanpay/payment-module
Follow the following steps to configure the module:
The actual HTML form presented for the customer can be found at
/Controller/Payment/GetPaymentURL.php containing the order id.
/Controller folder defines the publically served PHP pages.
It's served at an URL defined by
/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 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 folder defines module dependencies, module configuration, module naming and the layout of the admin panel module configuration.