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
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.
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
Hi @Eduardo Pires,
yes, am using third party gateway library. Currently Outsystem's payment plugin doesn't support that gateway.