iOS-Receipt-Validator-PHP icon indicating copy to clipboard operation
iOS-Receipt-Validator-PHP copied to clipboard

validator does not work for autorenewable receipt

Open rollsappletree opened this issue 8 years ago • 0 comments

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.

rollsappletree avatar Jul 20 '17 13:07 rollsappletree