With the growing reliance on third-party payment providers and authentication services, it's crucial to provide functionality and security within your app equivalent to what you offer on your website. Secure Modal addresses this challenge by creating a secure environment within your app, enabling the seamless usage of essential third-party functionalities, such as web-based Apple Pay and Google Pay, while maintaining the highest level of security.
Note that if you are implementing your own instance of Apple Pay or Google Pay, we recommend using the native iOS and Android integrations which provide the utmost functionality and user experience. However, in cases where you are using an external payment provider that in turn offers Apple Pay or Google Pay, such a native integration is not possible, and this is where Secure Modal will save the day.
While compatible with Apple Pay and Google Pay, we designed this native plugin to provide you with a seamless solution for integrating any external web solution that requires a secure iOS WKWebView window with external scripting blocked or a Chrome Custom Tab on Android.
The plugin can be integrated effortlessly into your app using the Median App Studio and JavaScript Bridge. Ready to extend your app’s reach with secure third-party libraries? Enhance your app's functionality and user experience with Secure Modal.
Key features
Frequently asked questions about Secure Modal (Apple Pay)
If you are implementing payment processing yourself, rather than using a third party solution, we recommend using native Apple Pay on iOS and/or Google Pay on Android. In these cases, simply get in touch with the expert team at Median for assistance with your specific app and use case.
When you launch a secure modal window, you can provide an “autoClosePath” URL. When this URL is detected as being displayed in the modal, your app will automatically close the window and return focus to the previous screen. There, the JavaScript promise or callback will be invoked with any URL parameters found on the last URL displayed in the modal. This allows you to handle next steps based on, for example, a successful purchase or unsuccessful purchase.
Due to additional security restrictions on Android, auto-close functionality can only be offered on iOS. For Android, you will need to instruct users to close the secure modal window themselves, and detect successful payment on your backend. For example, “Click to continue to checkout. After you complete payment, close the window to return.”