Php sdk for Paydo
<?php
header('Content-Type: text/html; charset=UTF-8');
// Paydo data
$publicKey = '';
$secretKey = '';
// Order params
$params['amount'] = 1;
$params['currency'] = 'RUB';
$params['orderId'] = 1;
$params['paymentType'] = 'app';
$params['payment'] = 'ALL';
require_once('../Paydo.php');
$paydo = new Paydo($publicKey,$secretKey);
$response = $paydo->api('initPayment', $params);
if(!empty($response->result->payUrl)){
header("Location: " . $response->result->payUrl);
}
Download last version , unzip and copy to your project folder.
Please feel free to contribute to this project! Pull requests and feature requests welcome!