Download the PHP package leehom1988/ios-iap-verification-php without Composer
On this page you can find all versions of the php package leehom1988/ios-iap-verification-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download leehom1988/ios-iap-verification-php
More information about leehom1988/ios-iap-verification-php
Files in leehom1988/ios-iap-verification-php
Package ios-iap-verification-php
Short Description This PHP Class is help you to verification your Apple IAP receipt-data if your server is developed by PHP.
License MIT
Homepage https://github.com/leehom1988/ios-iap-verification-php
Informations about the package ios-iap-verification-php
Apple In App Purchase Verification With PHP
This PHP Class is help you to verification your Apple IAP receipt-data if your server is developed by PHP.
Installation
It's recommended that you use Composer to install this library.
This will install this library and all required dependencies. This library requires PHP 5.6.0 or newer.
Usage(English)
Create an Demo.php file with the following contents:
Usage(中文)
创建一个名为Demo.php的文件,将以下内容拷贝至Demo.php文件中:
View results:
-
Use PHP CLI, in the terminal windows, type the following contents:
- Directly access to your Demo.php file in your browser.
Status codes:
- 21000 The App Store could not read the JSON object you provided.
- 21002 The data in the receipt-data property was malformed or missing.
- 21003 The receipt could not be authenticated.
- 21004 The shared secret you provided does not match the shared secret on file for your account. Only returned for iOS 6 style transaction receipts for auto-renewable subscriptions.
- 21005 The receipt server is not currently available.
- 21006 This receipt is valid but the subscription has expired. When this status code is returned to your server, the receipt data is also decoded and returned as part of the response. Only returned for iOS 6 style transaction receipts for auto-renewable subscriptions.
- 21007 This receipt is from the test environment, but it was sent to the production environment for verification. Send it to the test environment instead.
- 21008 This receipt is from the production environment, but it was sent to the test environment for verification. Send it to the production environment instead.
For Status codes more information, see Apple Receipt Validation Programming Guide.
Author:
If you have any question,Please be easy to contact me:
- Name: LeeHom
- Email: [email protected]
- Website
Hope it can help You, Just Enjoy It! 😁😁😁😁
- (If you like it, Star it!️⭐⭐️)
- (喜欢就给个星星吧!⭐️⭐)
License
The MIT License (MIT). Please see License File for more information.