AppStoreClient icon indicating copy to clipboard operation
AppStoreClient copied to clipboard

Question: how get latest_receipt

Open kasl opened this issue 10 years ago • 4 comments

for ios7 style auto-renewable subscription?

kasl avatar Jan 11 '16 06:01 kasl

As described in docs iOS7 receipts haven't got latest_receipt and latest_receipt_info fields

alxmsl avatar Jan 11 '16 21:01 alxmsl

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?

kasl avatar Jan 12 '16 04:01 kasl

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
    }

alxmsl avatar Jan 12 '16 21:01 alxmsl

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.

rhaps107 avatar Jan 12 '16 21:01 rhaps107