alxmsl/appstoreclient
最新稳定版本:v1.2.3
Composer 安装命令:
composer require alxmsl/appstoreclient
包简介
AppStore client for iTunes purchases receipts verification
README 文档
README
AppStore client for iTunes purchases receipts verification
Installation
For install library completely, you need to include require configuration:
"alxmsl/appstoreclient": "1.1.0"
Auto-renewable subscription receipt verification
use alxmsl\AppStore\Client; use alxmsl\AppStore\Exception\ExpiredSubscriptionException; /** * Define needed constants */ const PASSWORD = 'secredsharedpassword', SANDBOX = true, RECEIPT = 'MySECReT5u8sCR1Pti0NRece1Pt='; // Create App Store client for production or sandbox $AppStore = new Client(); $AppStore->setPassword(PASSWORD) ->setSandbox(SANDBOX); // Verify subscription receipt try { var_dump($AppStore->verifyReceipt(RECEIPT)); } catch (ExpiredSubscriptionException $ex) { var_dump($ex->getStatus()); }
Purchases receipt verification
use alxmsl\AppStore\Client; /** * Define needed constants */ const SANDBOX = true, RECEIPT = 'MySECReTRece1Pt='; // Create App Store client for production or sandbox $AppStore = new Client(); $AppStore->setSandbox(SANDBOX); // Verify purchase receipt var_dump($AppStore->verifyReceipt(RECEIPT));
统计信息
- 总下载量: 22.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 30
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: WTFPL
- 更新时间: 2014-08-03