PHP code example of busuu / ios-receipts-api
1. Go to this page and download the library: Download busuu/ios-receipts-api 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/ */
busuu / ios-receipts-api example snippets
// This file is generated by Composer
eiptServiceFactory::createReceiptService('your_apple_shared_secret');
$client->setReceiptData('receipt_data');
$purchase = $client->getLastPurchase();
echo $purchase->getExpiresDate();
bash
$ curl -sS https://getcomposer.org/installer | php
bash
$ php composer.phar