ApplePay mTLS long response time

I'm calling the endpoint https://apple-pay-gateway-cert.apple.com/paymentservices with mTLS and it's taking over 15 seconds to complete the request. This is happening only when deployed through AWS.

I have tried a dummy dotnet and node lambda with the same result.

Wondering if anyone had the same issue.

Also stack overflow post explaining the code in more depth - https://stackoverflow.com/questions/79755891/mtls-http-call-taking-over-15-seconds

I get the same thing when Sending HTTP request POST https://apple-pay-gateway.apple.com/paymentservices/startSession

+15 seconds for a response

ApplePay mTLS long response time
 
 
Q