PHP code example of moncasheasy / moncash-easy-sdk
1. Go to this page and download the library: Download moncasheasy/moncash-easy-sdk 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/ */
moncasheasy / moncash-easy-sdk example snippets
{
" "moncasheasy/moncash-easy-sdk": "^2.0.1"
}
}
use MoncashEasy\SDK\MoncashAPI;
$clientId = "<votre client id>";
$clientSecret = "<votre client secret>";
$moncash = new MoncashAPI($clientId, $clientSecret);
//Effectuer un paiement
$orderId = 93;//Une identification unique pour le paiement
$amount = 120;//Le montant du paiement
$payReq = $moncash->makePaymentRequest($orderId, $amount);