PHP code example of findyanot / qiwi_api_php

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

    

findyanot / qiwi_api_php example snippets



$qiwi = new FindYanot\QiwiApi('79997965958', 'd86e556798678df67606fs876f9');


$qiwi = new FindYanot\QiwiApi('79997965958', 'd86e556798678df67606fs876f9');
$sendMoney = $qiwi->sendMoneyToQiwi([
    'id' => time() + 10 * 5,
    'sum' => [
        'amount'   => 1000,
        'currency' => 643
    ], 
    'source' => 'account_643',
    'paymentMethod' => [
        'type' => 'Account',
        'accountId' => 643
    ],
    'comment' => 'Тестовый платеж',
    'fields' => [
        'account' => '+79997965958'
    ]
]);


composer