Share via

Integrate Apple pay and google pay on .NET MAUI

Bhuwan 1,221 Reputation points
2026-02-27T05:26:23.5233333+00:00

Hello,

I want to integrate Apple Pay and Google Pay into a .NET MAUI 10 project. If you have any documentation or references, I would really appreciate it. It would be very helpful for me to understand how to integrate this into our project.

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

Answer accepted by question author
  1. Nancy Vo (WICLOUD CORPORATION) 795 Reputation points Microsoft External Staff Moderator
    2026-02-27T08:41:25.2133333+00:00

    Hi @Bhuwan ,

    Thanks for reaching out.

    Unfortunately, there is no official Microsoft documentation specifically for integrating Apple Pay and Google Pay into .NET MAUI, as these require platform-specific implementations. For more details about these implementations, it is better to ask them in their respective communities (Apple Forum, Google Forum). But I could recommend you to refer these documents below:

    For Apple Pay in .NET MAUI:

    For integrating Apple Pay, you can refer to Apple Pay in Xamarin.iOS.

    Since Apple Pay is a native iOS feature, you’ll need to implement it using platform-specific code in your MAUI project. You can refer to the official guidance here.

    If you choose to use Stripe as your payment processor, you can refer to the official Stripe documentation for ios.

    For Google Pay in .NET MAUI:

    Because MAUI doesn't have built-in support for Apple Pay or Google Pay, you have to use platform-specific native APIs and write your own integration. I also provide general guidance if you need: Google Pay for payment.

    For compined Apple Pay and Google Pay and Stripe in MAUI, you may refer these resources:

    Build an iOS binding library for Stripe by following the provided walkthrough, and implement the required Stripe integration code based on the official iOS quickstart guide.

    While these are some non-Microsoft links, they're official documentations for the respective platforms and are safe to visit.

    Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.

    Thanks for your time.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2026-02-27T05:26:36.8+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Apple Pay and Google Pay are not provided as built‑in payment controls in .NET MAUI. Integration is done using each platform’s native payment APIs and entitlements, which can be accessed from a .NET MAUI app via platform-specific code.

    For Apple Pay on iOS/macOS:

    1. Enable the Apple Pay entitlement in the iOS/macOS project:
      • In the Entitlements.plist, add the Apple Pay entitlement key as described in the iOS entitlements documentation. The entitlement is defined using the com.apple.developer.in-app-payments key of type Array of String (values are your merchant IDs), for example:
         <key>com.apple.developer.in-app-payments</key>
         <array>
           <string>merchant.yourcompany.yourapp</string>
         </array>
      
      • Ensure the merchant ID and Apple Pay capability are configured in the Apple Developer portal and in the app’s provisioning profile.
    2. From .NET MAUI, call into the native iOS payment APIs:
      • Use .NET MAUI’s ability to directly exercise platform APIs (iOS) from shared code or via partial classes. .NET MAUI unifies platforms but still allows direct access to native APIs when required.
      • Implement the Apple Pay flow (creating a payment request, presenting the Apple Pay sheet, handling the result) using the native iOS APIs in a platform-specific project or via native embedding if integrating MAUI UI into an existing native app.

    For Google Pay on Android:

    1. There is no specific MAUI entitlement; Google Pay is integrated via the Android Google Pay APIs.
    2. Use platform-specific Android code (in the Android head project) to:
      • Configure Google Pay (payment profile, allowed payment methods, etc.).
      • Invoke the Google Pay sheet and handle the result.
    3. From MAUI shared code, invoke this Android-specific implementation via dependency injection or partial classes.

    General MAUI integration approach:

    • .NET MAUI provides a single UI framework but still allows direct use of native platform APIs when required:
      • Shared business logic and UI in MAUI.
      • Platform-specific payment logic in each head project (iOS/Android) using native APIs.
    • If embedding MAUI UI into an existing native app (or vice versa), use native embedding:
      • Create a .NET MAUI single project with the shared UI.
      • Enable MAUI support in the native app project (<UseMaui>true</UseMaui> and Microsoft.Maui.Controls package).
      • Initialize MAUI and convert MAUI controls to native types with ToPlatformEmbedding while keeping payment logic in the native layer.

    Because Apple Pay and Google Pay flows are entirely platform-specific, the recommended pattern is:

    • Keep payment orchestration and UI triggers in MAUI.
    • Implement Apple Pay (iOS/macOS) and Google Pay (Android) using their native SDKs in platform projects.
    • Expose those implementations to MAUI via interfaces or dependency services.

    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.