I am trying to integrate Apple Pay for web with Sandbox credit card information.
I am using Java as backend, at Merchant Server and JS at front end.
Created 2 CSR's in macbook
1. For Payment Processing Certificate(PPC) with 256 bits and ECC algorithm
2. For Merchant Identity Certificate(MIC) with 2048 bits and RSA algorithm
Uploaded these 2 .csr files under my merchant id's PPC and MIC respectively.
Now, downloaded the .cer files i.e., certificate files into my merchant server i.e., Java + Spring Boot backend.
Tried to install these 2 .cer files into cacerts as jks
But, SSL handshake exception while trying to hit the merchant validation url from the server
HTTP POST Request
{
"merchantIdentifier": "merchant.com.xxxx.applepay",
"displayName": "A sample SRK shop",
"initiative": "web",
"initiativeContext": "applepay.xxxx.com"
}
It is throwing handshake exception.
Tried to connect to merchant validation url from the openssl client from my merchant server.
SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:s3_pkt.c:1487:SSL alert number 40
SSL routines:ssl123_write:ssl handshake failure:s23_lib.c:177:
Any help is appreciated, If my approach is totally wrong correct me.