Question: how get latest_receipt
for ios7 style auto-renewable subscription?
As described in docs iOS7 receipts haven't got latest_receipt and latest_receipt_info fields
but they still are coming in the server response. Well, if they do not - how to get the last receipt with all the latest purchase?
I think, it might be coming in response for subscriptions that must have been purchased under iOS6. You must use Client::verifyReceipt in that way
$Response = $AppStore->verifyReceipt($receipt);
if ($Response instanceof RenewableStatus) {
//@todo: iOS6 subscription process
else if ($Response instanceof ResponsePayload) {
//@todo: iOS7 subscription process
}
This library is not ready to use for renewable subscriptions in iOS7, because appstore returns ALL subcriptions data on every customer request, not just related to receipt. And there is no solution for that type of responses, only iOS6 subsriptions responses are supported for now. I almost finished that improvement in my fork of this library.