1. Go to this page and download the library: Download moyasar/moyasar-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
moyasar / moyasar-php example snippets
\Moyasar\Moyasar::setApiKey('api-key');
$paymentService = new \Moyasar\Providers\PaymentService();
$payment = $paymentService->fetch('ae5e8c6a-1622-45a5-b7ca-9ead69be722e');
$paymentService = new \Moyasar\Providers\PaymentService();
$paginationResult = $paymentService->all();
$payments = $paginationResult->result;