PHP code example of tuyenlaptrinh / perfect-money

1. Go to this page and download the library: Download tuyenlaptrinh/perfect-money 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/ */

    

tuyenlaptrinh / perfect-money example snippets

 php
tuyenlaptrinh\PerfectMoney\PerfectMoneyServiceProvider::class,
 php
'PerfectMoney' => tuyenlaptrinh\PerfectMoney\PerfectMoney::class,

php artisan vendor:publish --provider="tuyenlaptrinh\PerfectMoney\PerfectMoneyServiceProvider" --tag="config"
 php
PerfectMoney::render();
 php
PerfectMoney::render(['PAYMENT_UNITS' => 'EUR']);
 php
$pm = new PerfectMoney;
$wallets = $pm->wallets();

if($wallets['status'] == 'success')
{
    foreach($wallets['wallets'] as $wallet){
        echo $wallet['account'].': '.$wallet['balance']; // U1935xxx: 10.00
    }
}