PHP code example of cccdl / apple_sdk
1. Go to this page and download the library: Download cccdl/apple_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/ */
cccdl / apple_sdk example snippets
$app = new Verify();
//开启沙盒模式 true=沙盒 false=生产正式
$app->setSandBox(true);
$res = $app->doVerify('苹果凭据');
$config = Config::getConfig();
$app = new History($config, true);
$res = $app->getTransactionHistory('transactionId',[]);