1. Go to this page and download the library: Download winwin/pay-sdk 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/ */
winwin / pay-sdk example snippets
use winwin\pay\sdk\Config;
use winwin\pay\sdk\payment\Payment;
$payment = new Payment(new Config([
'appid' => $appid,
'secret' => $secret,
]));
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
$logger = new Logger('WinwinPay');
$logger->pushHandler(new StreamHandler('php://stderr', Logger::DEBUG));
$payment->setLogger($logger);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.