Skip to content

reactmore-tech/mayar-php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mayar.id Unofficial PHP SDK

Latest Version MIT Licensed Total Downloads

Account

You need api key to used this API register in Mayar.id

Installation

composer require reactmore-tech/mayar-php-sdk

Usage

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,
]);

Mayar Headless API Example Method in WIKI

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.

Contributions

We welcome community contributions to this repository. Please refer to the contribution guidelines to get started.

Licensing

Licensed under the MIT license. See the LICENSE file for details.

About

[unofficial] Mayar.id Payment API Client for PHP | https://mayar.id

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors 2

  •  
  •  

Languages