# Apple Pay via In-App Broswer?

**URL:** <https://forum.ionicframework.com/t/apple-pay-via-in-app-broswer/214193>\
**Category:** Capacitor\
**Created:** [August 24, 2021, 8:45pm UTC](https://forum.ionicframework.com/t/apple-pay-via-in-app-broswer/214193 "2021-08-24T20:45:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tusksoft](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tusksoft](https://forum.ionicframework.com/u/tusksoft)\
**Post date:** [August 24, 2021, 8:45pm UTC](https://forum.ionicframework.com/t/apple-pay-via-in-app-broswer/214193/1 "2021-08-24T20:45:54Z")

</div>

From what I’ve seen, the main limitation for Apple Pay JS on a web page is that you need to [use a SFafariViewController](https://stackoverflow.com/questions/44190343/applepay-on-wkwebview), which is what Capacitor’s [In-App Browser](https://capacitorjs.com/docs/apis/browser) generates.

My team’s main concern is that we might run into issues with protocol, because Apple requires https, and I gather it is not possible [to force an app to use https:// instead of capacitor://](https://forum.ionicframework.com/t/https-for-the-app-server-protocol-instead-of-capacitor-on-ios/200116), and can even lead to an app being banned if you try. But we’re not sure if the example linked to applies to using an in-app browser, that would essentially be opening a different webpage altogether.

Is it possible to setup a webpage that implements Apple Pay JS, open the page via an in-app browser, then direct users back to the app once payment is complete?
