Missing Apple App Secret in your code
umangmjoshi opened this issue · 1 comments
umangmjoshi commented
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'));
}
billymahmood commented
Hi,
Please can you tell me what 'APPLE_APP_SECRET' is required here as I am also getting the same error?