iOS-Receipt-Validator-PHP
iOS-Receipt-Validator-PHP copied to clipboard
validator does not work for autorenewable receipt
Hi, this validator does not work for autorenewable receipt.
After having validated a receipt, you return "$decoded_response->receipt" that is wrong because information on autorenewal receipt are into "$decoded_response->latest_receipt_info".
So you at least should pass into $decoded_response->receipt->in_app the result of array_merge( $decoded_response->receipt->in_app, $decoded_response->latest_receipt_info) to have correct results.