These payment options provide a frictionless way for your customers to make purchases. On average, users are more likely to purchase with Apple Pay / Google Pay over any other payment method when given the option.
Apple recommends using SFSafariViewController. SFSafariViewController is part of the SafariServices framework and lets users browse a web page or a website right inside your app.
NB: Apple Pay will not work if you try to load the MoonPay widget within an iframe. We recommend redirecting users to our https://buy.moonpay.com domain within SFSafariViewController.
When iOS 13 was released in 2019, Apple said web pages loaded in WKWebView can now accept Apple Pay. Since then however Apple has not given any official guidance on their support for WKWebview and their developer documentation says only “Safari and SFSafariViewController objects support Apple Pay.”
Alternatively some partners have used the React Native in-app browser. If installed on iOS it gives you SFSafariViewController but the implementation is more difficult and not officially recommended by MoonPay.
Yes, as long as:
- The user is using Safari or your integration uses SFSafariViewController.
- The user's card is already set up with Apple Pay.
- The MoonPay widget is NOT in an iframe.
Google recommends using Chrome Custom Tabs for Google Pay support. Unlike Apple Pay, Google Pay will work within an iframe. We recommend redirecting users to our https://buy.moonpay.com domain within Custom Tabs.
Google Pay is not officially supported web views. We recommend partners use Chrome or Chrome Custom Tabs only.
Alternatively, some partners have used the React Native in-app browser. If installed on Android it gives you Chrome Custom Tabs, but the implementation is more difficult and not officially recommended by MoonPay.
Yes, as long as:
- The user is using Chrome or your integration uses Chrome Custom Tabs.
- The user's card is set up with Google Pay.
Updated 3 months ago