Mintage Pay for PrestaShop
Copyright (c) 2026 Mintage Pay. MIT licence (see LICENSE).

This module was started from the BTCPay Server PrestaShop module
(https://github.com/btcpayserver/prestashop-plugin, cloned 2026-10-02, version 6.3.2).
It was rewritten for the Mintage Pay /v1 API: the payment, webhook and status logic are new code,
and the original module's Composer dependencies, admin Symfony forms, database entity and
server client were not kept. What remains derived from it, in adapted form:

- the module layout: a PaymentModule whose PaymentOption posts to a payment front controller,
  a separate webhook front controller, custom order states created on install and kept on uninstall;
- the webhook controller rendering no theme and staying reachable in maintenance mode;
- the cart and customer checks before the order is created (payment controller);
- private order notes written as messages on the order's customer thread
  (classes/MintagePayPrestaShopOrder.php).

The original licence and copyright notice follow, as that licence requires.

--------------------------------------------------------------------------------

MIT License

Copyright (c) 2017-2025 btcpayserver

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
