Redirect from iOS Apps
Due to a recent US court ruling , iOS app developers in the US are now able to bypass Apple’s in-app payment acceptance, and instead redirect users to an external payment page. Doing so can help to reduce payment acceptance costs when selling in-app digital goods.
You can redirect in-app users to the Airwallex Hosted Payment Page to collect payments outside the app, and then seamlessly redirect them back to the app once payment is completed. A video of the experience can be viewed here .
The recommended approach is to create an invisible WKWebview in your app, where you can load the JS SDK JS. When the user clicks to pay within the app, you can call the redirectToCheckout() JS function from the JS SDK to send the user to an external browser to make payment on the Hosted Payment Page.
For sample code, please refer to nativeHPPButtonTapped() in IntegrationDemoListViewController .