PHP code example of daniel-spravtsev / yoomoney-sdk-php
1. Go to this page and download the library: Download daniel-spravtsev/yoomoney-sdk-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/ */
daniel-spravtsev / yoomoney-sdk-php example snippets
// For payments from the Yoomoney wallet
horization
use \YandexMoney\API;
$auth_url = API::buildObtainTokenUrl($client_id, $redirect_uri, $scope);
$process_options = array(
"request_id" => $request_id
// other params..
);
$result = $external_payment->process($process_options);
// process $result according to docs
API($access_token).requestPayment(array(
test_payment => "true",
// other params
));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.