You need api key to used this API register in Mayar.id
composer require reactmore-tech/mayar-php-sdk
require 'vendor/autoload.php';
$mayarId = new \ReactMoreTech\MayarHeadlessAPI\MayarProvider();
$mayarId->setProduction(false);
$mayarId->apiToken("xxxx");
$mayarId->webhookToken("xxxxxx");
OR
$mayarId = new \ReactMoreTech\MayarHeadlessAPI\MayarProvider([
'apiToken' => "xxxxxxxxxxxxx",
'webhookToken' => "xxxxxxxxxxx",
'isProduction' => false,
]);
See Example on WIKI:
- Product
- Invoice
- Request Payment
- Installment
- Discount & Coupon
- Cart (No Realease yet from api)
- Customer
- Transaction
- Webhook
- Software License Code
- SaaS Membership License
Note that this repository is currently under development, additional classes and endpoints being actively added.
We welcome community contributions to this repository. Please refer to the contribution guidelines to get started.
Licensed under the MIT license. See the LICENSE file for details.