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

Missing Apple App Secret in your code

Open umangmjoshi opened this issue 8 years ago • 1 comments

You need to send request with "Apple App Secret" to validate receipt otherwise it returns 500 - Internal server error.

So, I made following changes in your code where you need to past your apple app secret

private function encodeRequest() { return json_encode(array('receipt-data' => $this->getReceipt(), 'password' => 'APPLE_APP_SECRET')); }

umangmjoshi avatar Apr 29 '17 10:04 umangmjoshi

Hi,

Please can you tell me what 'APPLE_APP_SECRET' is required here as I am also getting the same error?

billymahmood avatar Apr 30 '18 14:04 billymahmood