Case-ID: 6394971
Hi Apple Team,
We are trying to implement “onvalidatemerchant” event, but we are facing below error.
“System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host”
below is the sample code what we trying.
string validationUrl = https://apple-pay-gateway.apple.com/paymentservices/startSession;
var sessionRequestBody = new ApplePaySessionRequest
{
merchantIdentifier = "merchant.com.onepay.onepaygo",
displayName = "Apple Pay OnePay",
Initiative = "web",
initiativeContext = "portaldev.onepay.com"
};
We are also added the merchant certificate.
We have also tried other url: string validationUrl = https://apple-pay-gateway-cert.apple.com/paymentservices/startSession.
Let me know if you need any other info.