29
Views
3
Comments
Solved
Invalid Access Error for ApplePay Session
Question
Application Type
Mobile
Service Studio Version
11.54.61 (Build 63317)

Hello Friends,

I am experiencing an issue with Apple Pay integration in our mobile app. The integration works perfectly when accessed via the Safari browser on a mobile device. However, when the same code runs within the mobile app, i encounter the following error:

"Invalid Access Error: trying to start an Apple Pay Session from an insecure document"

I have verified this with  the HyperPay payment provider, and they have confirmed that the issue is on the mobile side 


2025_02_06_15_58_28__ApplePayError.png
2022-07-24 08-50-37
Gokula Kannan P
Solution

Hello Friends,

I have resolved the issue by developing a custom native plugin using the gateway’s SDK.

The root cause of the problem was that the OutSystems-generated application runs on the outsystems:// protocol instead of https://. Since Apple Pay requires a secure context to create a session, it was unable to initialize the Apple Pay session over a custom (non-secure) protocol.

2024-10-25 08-47-19
Eduardo Pires

Hi @Gee Kay!

Are you using any 3rd-party library?
Did you try to use the Payments Plugin from Outsystems forge? https://www.outsystems.com/forge/component-overview/13678/payments-plugin-o11

2022-07-24 08-50-37
Gokula Kannan P

Hi @Eduardo Pires,

yes, am using third party gateway library. Currently Outsystem's payment plugin doesn't support that gateway.

2022-07-24 08-50-37
Gokula Kannan P
Solution

Hello Friends,

I have resolved the issue by developing a custom native plugin using the gateway’s SDK.

The root cause of the problem was that the OutSystems-generated application runs on the outsystems:// protocol instead of https://. Since Apple Pay requires a secure context to create a session, it was unable to initialize the Apple Pay session over a custom (non-secure) protocol.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.