InvalidAccessError getting while creating ApplePaySession object using new keyword

CODE:
const session = new ApplePaySession(3, paymentRequest); 

Error:
InvalidAccessError: Trying to start an Apple Pay session from an insecure document.

Please provide any solution to resolve this error.

InvalidAccessError: Trying to start an Apple Pay session from an insecure document.

Do you have a valid TLS certificate on your client server?


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
InvalidAccessError getting while creating ApplePaySession object using new keyword
 
 
Q