Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

beebmx/kirby-pay

Repository files navigation

Build Status Latest Stable Version License

Kirby Pay

Kirby Pay offers a painless and easy way to create payments for Kirby, with many things to customize if you want.

See the docs for everything: https://beebmx.github.io/kirby-pay

Installation

Composer

composer require beebmx/kirby-pay

Usage

After you install the package just include the snippets and set the items (products or services) to sell:

<header>

<meta name="csrf-token" content="<?= csrf() ?>">
<?php snippet('kirby-pay.styles') ?>

</header>
<body>

<?php
    snippet('kirby-pay.payment', [
        'items' => [
            ['name' => 'Product 001', 'amount' => 20.00, 'quantity' => 1],
            ['name' => 'Product 002', 'amount' => 10.00, 'quantity' => 2],
        ],
    ]);
?>

</body>

Disclaimer

This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment.

Credits

License

Licensed under the MIT license, see LICENSE.md for details.