use Alipay\Client;
$auth_code = $_GET['auth_code'];
$config = [
'appid' => 'app_id',
'gateway' => 'https://openapi.alipay.com/gateway.do',
'type' => 'sign_type',
'public' => 'public_key',
'private' => 'private_key'
];
$aop = new Client($config);
$response = $aop->getToken($auth_code);
var_dump($response);
naka1205 / alipay-php Goto Github PK
View Code? Open in Web Editor NEWAlipay SDK For PHP
License: MIT License