{"id":8381,"date":"2026-11-04T11:59:30","date_gmt":"2026-11-04T11:59:30","guid":{"rendered":"https:\/\/thehashtech.com\/blog\/?p=8381"},"modified":"2026-11-04T11:59:30","modified_gmt":"2026-11-04T11:59:30","slug":"add-apple-pay-and-stc-pay-to-app","status":"publish","type":"post","link":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/","title":{"rendered":"How Do I Add Apple Pay and STC Pay to My App?"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">To add Apple Pay and STC Pay, you usually do not connect to either one directly. You choose a payment gateway that supports both, set up Apple Pay in your Apple Developer account, enable STC Pay on your merchant account, and then use the gateway&#8217;s SDK or API. Your app collects the payment, and your backend confirms the result with the gateway.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The setup is mostly configuration. The mistakes come from certificates, missing payment networks, and trusting the app instead of the server. This guide covers both methods, step by step.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"i\"><\/span><span style=\"font-weight: 400;\">How Apple Pay and STC Pay Work<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The two methods feel different to users, and they run differently under the hood.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><span style=\"font-weight: 400;\">Apple Pay<\/span><\/td>\n<td><span style=\"font-weight: 400;\">STC Pay<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Type<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Tokenized card payment on Apple devices<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Digital wallet payment<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">User action<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Taps the Apple Pay button, then confirms with Face ID, Touch ID, or passcode<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Enters an STC Pay mobile number, then an SMS one-time code<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Platforms<\/span><\/td>\n<td><span style=\"font-weight: 400;\">iPhone, iPad, Apple Watch, and Safari<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Any app, through a gateway SDK or API<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">What you need<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Apple Developer account, Merchant ID, payment processing certificate<\/span><\/td>\n<td><span style=\"font-weight: 400;\">STC Pay merchant account and merchant ID<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Currency<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Set by your merchant account<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Saudi riyal (SAR) only<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Confirmation<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Encrypted token sent to your gateway<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Gateway confirms after the code is verified<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">Both usually settle through your payment gateway. That is why the first decision is the gateway.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"i-2\"><\/span><span style=\"font-weight: 400;\">Step 1: Choose a Payment Gateway<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Pick the gateway before you touch any code. Check these points:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">It supports both Apple Pay and STC Pay<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">It supports the MADA network for Apple Pay<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">It offers an SDK for your framework (Swift, Kotlin, Flutter, or React Native)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">It settles in SAR and fits your bank<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">It offers a sandbox with test codes<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Its fees, onboarding documents, and timeline are clear in writing<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Several gateways publish documentation for these methods. For example, Moyasar documents Apple Pay and STC Pay for iOS and Flutter. Checkout.com documents STC Pay for mobile apps through its Flow component. Amazon Payment Services documents STC Pay with a mobile SDK. Geidea and Noon Payments document Apple Pay with the mada network. Coverage changes, so confirm the current list before you commit.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Prefer the Gateway-Managed Certificate Route<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Some gateways let you manage the Apple Pay payment processing certificate on their side. Others let you manage it on your own backend. The second route puts you in a higher PCI DSS scope. For most apps, the gateway-managed route is simpler and safer.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"i-3\"><\/span><span style=\"font-weight: 400;\">Step 2: Add Apple Pay (iOS)<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Follow this order on iOS.<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create a Merchant ID. Register it in your Apple Developer account. One Merchant ID can serve several apps.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create the payment processing certificate. Your gateway gives you a certificate signing request (CSR). Upload it in Apple Developer, download the certificate, and upload it back to the gateway.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Enable Apple Pay for your App ID. Then regenerate your provisioning profiles.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Add the Apple Pay capability in Xcode. Select your Merchant ID. The ID in your code must match the one in the entitlement.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Build the payment request. Set the country, currency, summary items, and supported networks.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Show the Apple Pay button. Display it only if the device can make payments.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Present the payment sheet. Use the PassKit authorization controller.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Send the token to your backend. Your backend forwards it to the gateway.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Close the sheet with the real result. Report success or failure only after the backend confirms.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Our <\/span><a href=\"https:\/\/thehashtech.com\/mobile\/ios-app-development\"><span style=\"font-weight: 400;\">custom iOS app development<\/span><\/a><span style=\"font-weight: 400;\"> team follows this order on every Apple Pay project.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">The Payment Request<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Here is a minimal Swift example for Saudi Arabia:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">let <\/span><span style=\"font-weight: 400;\">request = <\/span><span style=\"font-weight: 400;\">PKPaymentRequest<\/span><span style=\"font-weight: 400;\">()<\/span><\/p>\n<p><span style=\"font-weight: 400;\">request.merchantIdentifier = <\/span><span style=\"font-weight: 400;\">&#8220;merchant.com.yourcompany.app&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">request.countryCode = <\/span><span style=\"font-weight: 400;\">&#8220;SA&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">request.currencyCode = <\/span><span style=\"font-weight: 400;\">&#8220;SAR&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">request.supportedNetworks = [.visa, .masterCard, .mada]<\/span><\/p>\n<p><span style=\"font-weight: 400;\">request.merchantCapabilities = .threeDSecure<\/span><\/p>\n<p><span style=\"font-weight: 400;\">request.paymentSummaryItems = [<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">PKPaymentSummaryItem<\/span><span style=\"font-weight: 400;\">(<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0label: <\/span><span style=\"font-weight: 400;\">&#8220;Order 1234&#8221;<\/span><span style=\"font-weight: 400;\">,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amount: <\/span><span style=\"font-weight: 400;\">NSDecimalNumber<\/span><span style=\"font-weight: 400;\">(string: <\/span><span style=\"font-weight: 400;\">&#8220;99.00&#8221;<\/span><span style=\"font-weight: 400;\">)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">]<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Do not forget <\/span><span style=\"font-weight: 400;\">.mada<\/span><span style=\"font-weight: 400;\"> in the supported networks. Gateway documentation states that you must include it to accept Mada cards. Without it, many Saudi cards will not appear in the payment sheet.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"i-4\"><\/span><span style=\"font-weight: 400;\">Step 3: Add STC Pay (iOS and Android)<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">STC Pay works the same way on both platforms. The user enters a phone number, receives a one-time code by SMS, and confirms it.<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Open an STC Pay merchant account. Complete verification in STC Pay&#8217;s merchant process.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Get your merchant ID. You can find it in STC Pay&#8217;s merchant portal.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Ask your gateway to enable STC Pay. Send your merchant ID to your account manager.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Build the phone number screen. Ask for a Saudi mobile number and validate the format.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Start the payment. Your SDK or backend sends the number and amount to the gateway.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Build the code screen. The user enters the SMS code. Show a countdown and a resend option.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Confirm the payment. The gateway verifies the code and returns a status.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Verify on the server. Use the gateway&#8217;s webhook before you mark the order paid.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Most gateway SDKs include a ready-made STC Pay view that handles the phone number and code steps. Use it first. Build a custom screen only when your design needs it.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"i-5\"><\/span><span style=\"font-weight: 400;\">Step 4: Handle Android<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Apple Pay does not run in Android apps. Apple Pay works on Apple devices. For Android users, offer these options instead:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Google Pay. Gateways support it through their Android SDKs. Saudi Arabia added Google Pay through the Mada network in 2025.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">STC Pay. Use the same gateway SDK and the same phone and code flow.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Cards. Offer Mada and international cards through the gateway form.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">If you build with Flutter or React Native, you can share most of the checkout logic across both platforms. You still configure Apple Pay only on iOS. Our<\/span><a href=\"https:\/\/thehashtech.com\/mobile\/android-app-development\"> <span style=\"font-weight: 400;\">Android app development<\/span><\/a><span style=\"font-weight: 400;\"> team builds Google Pay and wallet flows alongside the iOS checkout so both platforms launch together.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"i-6\"><\/span><span style=\"font-weight: 400;\">Backend Rules That Protect Your Money<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The app collects the payment, but the backend decides what is true.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Never trust the app for success. Mark an order paid only after the gateway confirms through a webhook or a server call.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Set the amount on the server. Do not let the app send the final price.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Save the gateway payment ID. You need it for refunds and reconciliation.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Make requests idempotent. A double tap should not create two charges.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Keep keys on the server. Secret keys never belong in the app.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Do not log tokens or codes. Treat payment data as sensitive.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Handle every status. Plan for pending, paid, failed, and expired payments.<\/span><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"i-7\"><\/span><span style=\"font-weight: 400;\">Checkout UX Details<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">A correct integration can still lose sales if checkout feels unclear.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Show Apple Pay only when it is available. Hide the button on devices that cannot use it.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Put the fastest option first. Apple Pay or a saved method should lead.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Validate the phone number early. Catch format errors before the SMS is sent.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Show the code timer. Users should see how long the code lasts.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Write clear Arabic errors. &#8220;Payment declined&#8221; should explain what to do next.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Offer a fallback. If STC Pay fails, let users switch to a card without starting over.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Payments and Arabic localization also shape your budget. We explain how in our guide to<\/span><a href=\"https:\/\/thehashtech.com\/blog\/how-much-does-mobile-app-development-cost-in-saudi-arabia\/\"> <span style=\"font-weight: 400;\">mobile app development cost in Saudi Arabia<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"i-8\"><\/span><span style=\"font-weight: 400;\">An App Store Rule to Check<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Apple treats digital goods differently from physical goods and services. Digital content and subscriptions used inside the app generally use Apple&#8217;s in-app purchase. Physical goods and services that users consume outside the app, such as deliveries, bookings, and retail orders, can use Apple Pay and other payment methods. Check the current guidelines for your exact product before you design checkout.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"i-9\"><\/span><span style=\"font-weight: 400;\">Testing Checklist<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Run these checks in the gateway sandbox, then with small live payments.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Apple Pay success on a real device<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Apple Pay cancel and decline<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">A mada card in the Apple Pay sheet<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">STC Pay success with a test code<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">STC Pay wrong code and expired code<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Weak network during payment<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">App sent to the background mid-payment<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Double taps and repeated requests<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Webhook delay and duplicate webhooks<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Refund and reconciliation<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Arabic and English screens<\/span><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"i-10\"><\/span><span style=\"font-weight: 400;\">Common Mistakes When You Add Apple Pay and STC Pay<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Forgetting <\/span><span style=\"font-weight: 400;\">.mada<\/span><span style=\"font-weight: 400;\">. Many Saudi cards will not show up.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Mismatched Merchant IDs. The ID must match across your code, Xcode, Apple Developer, and the gateway.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Skipping the provisioning profile refresh. The capability change invalidates old profiles.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Trusting the client. Always verify payment status on the server.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Building a custom STC Pay screen too early. The SDK view already handles the flow.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Ignoring webhooks. Users close apps mid-payment, so the app may never see the result.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">No fallback. A single failed method should not end the sale.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Testing only success. Declines, timeouts, and wrong codes cause most support tickets.<\/span><\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"i-11\"><\/span><span style=\"font-weight: 400;\">Cost and Timeline<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Gateway fees, onboarding time, and settlement terms differ by provider, and no single public price applies. Ask each gateway for fees and onboarding steps in writing. Add development time for the checkout screens, backend, webhooks, and testing.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Planning payments early also helps the whole build. Our team of<\/span> <a href=\"https:\/\/thehashtech.com\/mobile\/app-development-company-saudi-arabia\"><span style=\"font-weight: 400;\">mobile app development in Saudi Arabia<\/span><\/a><span style=\"font-weight: 400;\"> scopes payments during discovery, so certificates, merchant accounts, and approvals start before the checkout screens are ready.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"i-12\"><\/span><span style=\"font-weight: 400;\">Final Thoughts<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">To add Apple Pay and STC Pay cleanly, start with the gateway, finish the account setup early, and keep the server in charge of payment truth. Apple Pay gives iPhone users a fast, secure tap. STC Pay gives wallet users a familiar code-based flow. Together, they cover many Saudi shoppers.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Teams that plan certificates, merchant IDs, and webhooks in the first sprint avoid the long delays at the end. The integration code is small. The setup around it is what takes time.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"i-13\"><\/span><span style=\"font-weight: 400;\">Frequently Asked Questions<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span style=\"font-weight: 400;\">Do I need a payment gateway to add Apple Pay and STC Pay?<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">In most cases, yes. A gateway receives the Apple Pay token or confirms the STC Pay code, then settles the money to you. Most apps use a gateway that supports both methods.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Does Apple Pay support mada cards?<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Yes, when your gateway and your payment request support the MADA network. Include the MADA network in your supported networks list.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Can I use Apple Pay in an Android app?<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">No. Apple Pay works on Apple devices. Offer Google Pay, STC Pay, and card payments to Android users.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">How does STC Pay work in an app?<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">The user enters an STC Pay mobile number, receives a one-time code by SMS, and enters it in your app. The gateway verifies the code and confirms the payment.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Does STC Pay support currencies other than SAR?<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Gateway documentation states that STC Pay supports Saudi riyal transactions only.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Can I use Apple Pay for digital subscriptions inside my iOS app?<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Digital content and subscriptions inside an iOS app generally need Apple&#8217;s in-app purchase. Apple Pay fits physical goods and services. Check the current App Store guidelines for your case.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Do I need PCI compliance?<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Card data security rules still apply. Using a gateway-managed flow keeps raw card data away from your servers and reduces your scope. Confirm your obligations with your gateway and compliance team.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Technical details come from public documentation from Apple and from payment gateways including Moyasar, Checkout.com, Amazon Payment Services, Geidea, and Noon Payments. Gateways and Apple update their requirements often, so confirm the latest steps in your own accounts before you build.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"i-14\"><\/span><span style=\"font-weight: 400;\">Planning Payments for Your App?<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">We set up gateways, certificates, and checkout flows for iOS and Android.<\/span><a href=\"https:\/\/thehashtech.com\/contact-us\"> <span style=\"font-weight: 400;\">Talk to our team<\/span><\/a><span style=\"font-weight: 400;\"> and we will scope Apple Pay and STC Pay before you commit to a build.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To add Apple Pay and STC Pay, you usually do not connect to either one directly. You choose a payment gateway that supports both, set up Apple Pay in your Apple Developer account, enable STC Pay on your merchant account, and then use the gateway&#8217;s SDK or API. Your app collects the payment, and your [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":8382,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-8381","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-app-development"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Add Apple Pay and STC Pay to an App: Developer Guide<\/title>\n<meta name=\"description\" content=\"How to add Apple Pay and STC Pay to an app: setup steps, payment gateways, iOS and Android flows, testing, security, and common mistakes.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add Apple Pay and STC Pay to an App: Developer Guide\" \/>\n<meta property=\"og:description\" content=\"How to add Apple Pay and STC Pay to an app: setup steps, payment gateways, iOS and Android flows, testing, security, and common mistakes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/\" \/>\n<meta property=\"og:site_name\" content=\"The Hashtech\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-04T11:59:30+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/thehashtech.com\/blog\/wp-content\/uploads\/2026\/11\/Untitled-design-38.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Lara Hawkins\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lara Hawkins\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/add-apple-pay-and-stc-pay-to-app\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/add-apple-pay-and-stc-pay-to-app\\\/\"},\"author\":{\"name\":\"Lara Hawkins\",\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/#\\\/schema\\\/person\\\/413374cb06a05c7e760d26c3236739c3\"},\"headline\":\"How Do I Add Apple Pay and STC Pay to My App?\",\"datePublished\":\"2026-11-04T11:59:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/add-apple-pay-and-stc-pay-to-app\\\/\"},\"wordCount\":1913,\"image\":{\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/add-apple-pay-and-stc-pay-to-app\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Untitled-design-38.jpg\",\"articleSection\":[\"App Development\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/add-apple-pay-and-stc-pay-to-app\\\/\",\"url\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/add-apple-pay-and-stc-pay-to-app\\\/\",\"name\":\"Add Apple Pay and STC Pay to an App: Developer Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/add-apple-pay-and-stc-pay-to-app\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/add-apple-pay-and-stc-pay-to-app\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Untitled-design-38.jpg\",\"datePublished\":\"2026-11-04T11:59:30+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/#\\\/schema\\\/person\\\/413374cb06a05c7e760d26c3236739c3\"},\"description\":\"How to add Apple Pay and STC Pay to an app: setup steps, payment gateways, iOS and Android flows, testing, security, and common mistakes.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/add-apple-pay-and-stc-pay-to-app\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thehashtech.com\\\/blog\\\/add-apple-pay-and-stc-pay-to-app\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/add-apple-pay-and-stc-pay-to-app\\\/#primaryimage\",\"url\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Untitled-design-38.jpg\",\"contentUrl\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Untitled-design-38.jpg\",\"width\":1200,\"height\":628},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/add-apple-pay-and-stc-pay-to-app\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How Do I Add Apple Pay and STC Pay to My App?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/\",\"name\":\"The Hashtech\",\"description\":\"Over the years, we\u2019ve helped thousands of businesses grow with smart, reliable digital solutions. Trusted by global clients and rated highly on top platforms.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/#\\\/schema\\\/person\\\/413374cb06a05c7e760d26c3236739c3\",\"name\":\"Lara Hawkins\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4ef9f02923e5275be88e46f0bd92da0ec95161d0c753f0d5627836a30a43c9a8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4ef9f02923e5275be88e46f0bd92da0ec95161d0c753f0d5627836a30a43c9a8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4ef9f02923e5275be88e46f0bd92da0ec95161d0c753f0d5627836a30a43c9a8?s=96&d=mm&r=g\",\"caption\":\"Lara Hawkins\"},\"description\":\"Lara Hawkins is a Senior Content Writer Specialist with expertise in creating clear and SEO-focused content. She specializes in technology, mobile app development, business, and education topics, helping brands communicate complex ideas in a simple and reader-friendly way.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/lara-hawkins-04b337145\\\/\"],\"url\":\"https:\\\/\\\/thehashtech.com\\\/blog\\\/author\\\/larahawkinsauthor\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add Apple Pay and STC Pay to an App: Developer Guide","description":"How to add Apple Pay and STC Pay to an app: setup steps, payment gateways, iOS and Android flows, testing, security, and common mistakes.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/","og_locale":"en_US","og_type":"article","og_title":"Add Apple Pay and STC Pay to an App: Developer Guide","og_description":"How to add Apple Pay and STC Pay to an app: setup steps, payment gateways, iOS and Android flows, testing, security, and common mistakes.","og_url":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/","og_site_name":"The Hashtech","article_published_time":"2026-11-04T11:59:30+00:00","og_image":[{"width":1200,"height":628,"url":"http:\/\/thehashtech.com\/blog\/wp-content\/uploads\/2026\/11\/Untitled-design-38.jpg","type":"image\/jpeg"}],"author":"Lara Hawkins","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lara Hawkins","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/#article","isPartOf":{"@id":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/"},"author":{"name":"Lara Hawkins","@id":"https:\/\/thehashtech.com\/blog\/#\/schema\/person\/413374cb06a05c7e760d26c3236739c3"},"headline":"How Do I Add Apple Pay and STC Pay to My App?","datePublished":"2026-11-04T11:59:30+00:00","mainEntityOfPage":{"@id":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/"},"wordCount":1913,"image":{"@id":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/#primaryimage"},"thumbnailUrl":"https:\/\/thehashtech.com\/blog\/wp-content\/uploads\/2026\/11\/Untitled-design-38.jpg","articleSection":["App Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/","url":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/","name":"Add Apple Pay and STC Pay to an App: Developer Guide","isPartOf":{"@id":"https:\/\/thehashtech.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/#primaryimage"},"image":{"@id":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/#primaryimage"},"thumbnailUrl":"https:\/\/thehashtech.com\/blog\/wp-content\/uploads\/2026\/11\/Untitled-design-38.jpg","datePublished":"2026-11-04T11:59:30+00:00","author":{"@id":"https:\/\/thehashtech.com\/blog\/#\/schema\/person\/413374cb06a05c7e760d26c3236739c3"},"description":"How to add Apple Pay and STC Pay to an app: setup steps, payment gateways, iOS and Android flows, testing, security, and common mistakes.","breadcrumb":{"@id":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/#primaryimage","url":"https:\/\/thehashtech.com\/blog\/wp-content\/uploads\/2026\/11\/Untitled-design-38.jpg","contentUrl":"https:\/\/thehashtech.com\/blog\/wp-content\/uploads\/2026\/11\/Untitled-design-38.jpg","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/thehashtech.com\/blog\/add-apple-pay-and-stc-pay-to-app\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thehashtech.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How Do I Add Apple Pay and STC Pay to My App?"}]},{"@type":"WebSite","@id":"https:\/\/thehashtech.com\/blog\/#website","url":"https:\/\/thehashtech.com\/blog\/","name":"The Hashtech","description":"Over the years, we\u2019ve helped thousands of businesses grow with smart, reliable digital solutions. Trusted by global clients and rated highly on top platforms.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thehashtech.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/thehashtech.com\/blog\/#\/schema\/person\/413374cb06a05c7e760d26c3236739c3","name":"Lara Hawkins","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4ef9f02923e5275be88e46f0bd92da0ec95161d0c753f0d5627836a30a43c9a8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4ef9f02923e5275be88e46f0bd92da0ec95161d0c753f0d5627836a30a43c9a8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4ef9f02923e5275be88e46f0bd92da0ec95161d0c753f0d5627836a30a43c9a8?s=96&d=mm&r=g","caption":"Lara Hawkins"},"description":"Lara Hawkins is a Senior Content Writer Specialist with expertise in creating clear and SEO-focused content. She specializes in technology, mobile app development, business, and education topics, helping brands communicate complex ideas in a simple and reader-friendly way.","sameAs":["https:\/\/www.linkedin.com\/in\/lara-hawkins-04b337145\/"],"url":"https:\/\/thehashtech.com\/blog\/author\/larahawkinsauthor\/"}]}},"_links":{"self":[{"href":"https:\/\/thehashtech.com\/blog\/wp-json\/wp\/v2\/posts\/8381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thehashtech.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thehashtech.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thehashtech.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/thehashtech.com\/blog\/wp-json\/wp\/v2\/comments?post=8381"}],"version-history":[{"count":1,"href":"https:\/\/thehashtech.com\/blog\/wp-json\/wp\/v2\/posts\/8381\/revisions"}],"predecessor-version":[{"id":8383,"href":"https:\/\/thehashtech.com\/blog\/wp-json\/wp\/v2\/posts\/8381\/revisions\/8383"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thehashtech.com\/blog\/wp-json\/wp\/v2\/media\/8382"}],"wp:attachment":[{"href":"https:\/\/thehashtech.com\/blog\/wp-json\/wp\/v2\/media?parent=8381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thehashtech.com\/blog\/wp-json\/wp\/v2\/categories?post=8381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thehashtech.com\/blog\/wp-json\/wp\/v2\/tags?post=8381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}