1. Go to this page and download the library: Download xplicit-dev/mamopay 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/ */
xplicit-dev / mamopay example snippets
use MamoPay\Api\MamoClient;
$client = (new MamoClient('API_KEY'));
$client = (new MamoClient('API_KEY',true));
// $client->class()->function() to access the API
//Example
$client->links()->get($linkId);
use MamoPay\Api\MamoClient;
$client = (new MamoClient('API_KEY'));
$params = ['card_id' => $card_id, 'amount' => $amount, 'currency' => $currency];
$response = $client->httpClient->sendRequest('end_point',$params,HttpClient::METHOD_POST);