PHP code example of iyamk / perfectmoney-api
1. Go to this page and download the library: Download iyamk/perfectmoney-api 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/ */
iyamk / perfectmoney-api example snippets
echo $pm->getForm('your order id', '1.23', 'description payment');
$r = $pm->checkPay();
if ($r['status'])
{
// The request has been validated and can be trusted, now populate the value into the database and make the necessary checks
print_r($r);
}
else
{
// An error has occurred, you can write it to the log
echo $r['error'];
}
$r = $pm->getBalance();
print_r($r);