- 简化使用方法
- 调用简单,统一原样返回
- 可执行单元测试
- 1.0.0 增加验证苹果内购凭据,支持沙盒模式
运行环境要求PHP7.1+。
$ composer require cccdl/apple_sdk
$app = new Verify();
//开启沙盒模式 true=沙盒 false=生产正式
$app->setSandBox(true);
$res = $app->doVerify('苹果凭据');
苹果开发者官网 苹果开发者文档 通过 App Store 验证收据 verifyReceipt requestBody
提交 Issue,不符合指南的问题可能会立即关闭。
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
MIT