Hi,
I am not getting a response with session.onvalidatemerchant.
Here's my applepay_post.php:
curl_setopt($ch, CURLOPT_URL, $validation_url);
curl_setopt($ch, CURLOPT_SSLCERT,CERTIFICATE_PATH);
curl_setopt($ch, CURLOPT_SSLKEY, CERTIFICATE_KEY);
curl_setopt($ch, CURLOPT_SSLKEYPASSWD, CERTIFICATE_KEY_PASS);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $requestData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
$output = curl_exec($ch);
The $output is false (no response) for the above.
But when I made changes to these 2 lines, I get an error response.
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
Error Response: {"statusMessage": "Payment Services Exception merchantId=BC[....] not registered for service", "statusCode": "417"}
I have recreate certificate many ttime but still can't get it to validate the merchant identity.
What am I missing here?
Question is..... is Apple Pay JS really works?
Very frustrated here!