我只是想使用Zend Framework 2来验证IOS收据。
这是我的代码:
$url = 'https://sandbox.itunes.apple.com/verifyReceipt';
$params = array('receipt-data' => 'receipt data');
$request = new Request();
$request->setUri($url);
$request->setMethod('POST');
$request->setContent(json_encode($params));
$client = new Client();
$response = $client->send($request);
if ($response->isSuccess()) {
// the POST was successful
echo "ascscascascascascascascas";
}
但我收到了这样的错误
stream_socket_enable_crypto():SSL操作失败,代码为1。 OpenSSL错误消息:错误:14090086:SSL 例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败
如果有人知道这一点,请帮助我。