{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-ios/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","ApiLink","partial","img"]},"type":"markdown"},"seo":{"title":"Integration Guide | Tap to Pay on iPhone | Finix iOS","description":"Step-by-step guide to integrating the Finix Tap to Pay on iPhone SDK into your own iOS app, from device setup through distribution.","siteUrl":"https://docs.finix.com","llmstxt":{"hide":false,"sections":[{"title":"Getting Started","includeFiles":["guides/getting-started/**/*.md"],"excludeFiles":[]},{"title":"Online Payments","includeFiles":["guides/online-payments/**/*.md"],"excludeFiles":["guides/online-payments/payment-features/fsa-hsa-non-healthcare-mcc.md"]},{"title":"In-Person Payments","includeFiles":["guides/in-person-payments/**/*.md"],"excludeFiles":[]},{"title":"Subscriptions","includeFiles":["guides/subscriptions/**/*.md"],"excludeFiles":[]},{"title":"After the Payment","includeFiles":["guides/after-the-payment/**/*.md"],"excludeFiles":[]},{"title":"Managing Operations","includeFiles":["guides/managing-operations/**/*.md"],"excludeFiles":[]},{"title":"Platform Payments","includeFiles":["guides/platform-payments/**/*.md"],"excludeFiles":[]},{"title":"Payouts","includeFiles":["guides/payouts/**/*.md"],"excludeFiles":[]},{"title":"Low-Code / No-Code","includeFiles":["low-code-no-code/**/*.md"],"excludeFiles":[]},{"title":"Developers","includeFiles":["additional-resources/developers/**/*.md"],"excludeFiles":[]},{"title":"Plugins","includeFiles":["additional-resources/plugins/**/*.md"],"excludeFiles":[]},{"title":"Industry Considerations","includeFiles":["guides/industry-considerations/**/*.md"],"excludeFiles":[]},{"title":"Regional Considerations","includeFiles":["guides/regional-considerations/**/*.md"],"excludeFiles":[]},{"title":"Release Notes","includeFiles":["release-notes/**/*.md"],"excludeFiles":[]}]},"image":"/assets/ios-tap-to-pay-integration.912b75091d3e2cd469110a0df55cd25b31225191ec50ddd39d59a9c1e2e7a937.04fe652d.png"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"integration-guide","__idx":0},"children":["Integration Guide"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Integrate the Finix Tap to Pay on iPhone SDK into your own iOS app."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Tap to Pay entitlement required"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Do not continue until Apple has granted your ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/getting-started#request-the-tap-to-pay-entitlement"},"children":["Tap to Pay on iPhone entitlement"]},". Your integration will not work without it."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Before you start, complete the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/getting-started"},"children":["Getting Started"]}," guide. You'll need:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Apple's Tap to Pay on iPhone entitlement granted to your developer account."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A sandbox Apple Account to sign in on the test iPhone."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Your Finix merchant credentials and IDs from the Finix Dashboard."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/demo-app-walkthrough"},"children":["Demo App Walkthrough"]}," is optional but recommended as a working reference before you build your own integration."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Completed the demo app walkthrough?"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You still need to create a new Finix ",{"$$mdtype":"Tag","name":"ApiLink","attributes":{"href":"/api/devices"},"children":["Device"]}," for your own app."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"1-review-apples-app-review-requirements","__idx":1},"children":["1. Review Apple's App Review Requirements"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Build to Apple's App Review requirements from day one"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Apple reviews Tap to Pay on iPhone apps against specific user-experience requirements before granting the distribution entitlement. Build these requirements into your app from the start; retrofitting them after review feedback delays your launch. Review the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/app-review"},"children":["App Review requirements"]}," before designing your checkout UI."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"2-configure-xcode-and-verify-entitlement-support","__idx":2},"children":["2. Configure Xcode and verify entitlement support"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once Apple has granted your Tap to Pay on iPhone entitlement, wire it into your project:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In your ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developer.apple.com/account/"},"children":["Apple Developer account"]},", add the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Tap to Pay on iPhone"]}," capability to your App ID, then regenerate and download your provisioning profiles."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Add the entitlement to your app's ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".entitlements"]}," file:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"xml","data-title":"YourApp.entitlements","header":{"title":"YourApp.entitlements","controls":{"copy":{}}},"source":"<key>com.apple.developer.proximity-reader.payment.acceptance</key>\n<true/>\n","lang":"xml"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Add an NFC usage description to your app's ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Info.plist"]},". iOS shows this string the first time the reader is used:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"xml","data-title":"Info.plist","header":{"title":"Info.plist","controls":{"copy":{}}},"source":"<key>NFCReaderUsageDescription</key>\n<string>This app uses NFC to securely accept contactless payments via Tap to Pay on iPhone.</string>\n","lang":"xml"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Build to a physical iPhone and gate every Tap to Pay on iPhone entry point in your UI on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["isSupported()"]},":"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"import FinixTapToPaySDK\n\nif FinixTapToPay.isSupported() {\n    // Show your Tap to Pay on iPhone entry points.\n} else {\n    // Hide Tap to Pay on iPhone and offer another payment method.\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["isSupported()"]}," returns ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}," on unsupported hardware and on the simulator. If it returns ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}," but reader preparation later fails immediately, re-check that the entitlement is present in the built app's signature and that your provisioning profile includes the capability. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/support"},"children":["Troubleshooting and support"]},"."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"iPad is not supported"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Apple's Tap to Pay on iPhone is iPhone-only. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["isSupported()"]}," returns ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}," on iPad regardless of iPadOS version."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"3-collect-your-sdk-values","__idx":3},"children":["3. Collect your SDK values"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Collect these values before you initialize the SDK:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Format"},"children":["Format"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Where to find it"},"children":["Where to find it"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["API username"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["USxxxxxxxxxxxxx"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/getting-started#creating-api-keys"},"children":["From the Finix Dashboard"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["API password"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Issued with the username."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Shown once in the Dashboard when the key is created. Treat as a secret."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Merchant ID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MUxxxxxxxxxxxxx"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/getting-started#locating-the-merchant-id"},"children":["From the Finix Dashboard"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Merchant display name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Shown to the Buyer on Apple's tap screen."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["From the Merchant details page."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Device ID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DVxxxxxxxxxxxxx"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Created in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/device-setup"},"children":["Set up a Device"]},"."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A configuration's credentials, merchant, and Device must all belong to the same environment (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".sandbox"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".production"]},"). Mixing environments is a common cause of authentication and token errors."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Keep credentials off the client"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["API credentials embedded in an app binary can be extracted. Instead of compiling them in, have your backend deliver the credential pair, merchant details, and Device ID to the app at session start, scoped to the signed-in merchant."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"4-confirm-your-apps-bundle-id","__idx":4},"children":["4. Confirm Your App's Bundle ID"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You need your app's Bundle Identifier to create the Finix Device."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open your project in Xcode."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select your app target and go to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Signing & Capabilities"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Copy the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Bundle Identifier"]},"; you'll use it in the next step."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"5-create-a-finix-device","__idx":5},"children":["5. Create a Finix Device"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create a Device resource in Finix for the iPhone and your app's bundle ID. Do this once per merchant-iPhone pair; cache and reuse the Device ID on subsequent launches rather than creating duplicates."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Run these calls from your backend"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your Finix API credentials should not be embedded in the app binary. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#3-collect-your-sdk-values"},"children":["Collect your SDK values"]}," above for the recommended pattern."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{reader_identifier}"]}," below is Apple's per-device identifier, obtained at runtime from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PaymentCardReader().readerIdentifier"]}," (the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ProximityReader"]}," framework). See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/device-setup"},"children":["Device → Get the reader identifier"]}," in the SDK Reference for the Swift pattern to pass it to your backend."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Using the API:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -i -X POST \\\n  -u {your_api_key}:{your_api_secret} \\\n  https://finix.sandbox-payments-api.com/merchants/{merchant_id}/devices \\\n  -H 'Content-Type: application/json' \\\n  -H 'Finix-Version: 2022-02-01' \\\n  -d '{\n    \"app_bundle_id\": \"{your_app_bundle_id}\",\n    \"description\": \"iOS Tap to Pay device\",\n    \"model\": \"IOS_TAP_TO_PAY\",\n    \"name\": \"iPhone Tap to Pay - {merchant name}\",\n    \"serial_number\": \"{reader_identifier}\"\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Example response:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"DVxxxxxxxxxxxxx\",\n  \"enabled\": false,\n  \"model\": \"IOS_TAP_TO_PAY\",\n  \"merchant\": \"MUxxxxxxxxxxxxx\",\n  \"name\": \"iPhone Tap to Pay - Front Counter\",\n  \"serial_number\": \"{reader_identifier}\",\n  \"created_at\": \"2026-10-06T22:03:38.297337Z\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Copy the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]},"; you need it to activate the Device and to pass into ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TapToPayConfiguration"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"6-activate-the-device","__idx":6},"children":["6. Activate the Device"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Device starts disabled. Activate it before initializing the SDK."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -i -X PUT \\\n  -u {your_api_key}:{your_api_secret} \\\n  https://finix.sandbox-payments-api.com/devices/{device_id} \\\n  -H 'Content-Type: application/json' \\\n  -H 'Finix-Version: 2022-02-01' \\\n  -d '{ \"action\": \"ACTIVATE\" }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A successful response returns the ",{"$$mdtype":"Tag","name":"ApiLink","attributes":{"href":"/api/devices"},"children":["Device"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"enabled\": true"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"7-install-and-initialize-the-sdk","__idx":7},"children":["7. Install and Initialize the SDK"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The SDK is distributed as a binary XCFramework via Swift Package Manager."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In Xcode, choose ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File → Add Package Dependencies…"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter the package URL: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://github.com/finix-payments/finix-taptopay-ios-sdk"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Up to Next Major Version"]}," starting at ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1.0.0"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Build a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TapToPayConfiguration"]}," with the values you collected in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#3-collect-your-sdk-values"},"children":["Step 3"]}," and the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Device"]}," ID from ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#5-create-a-finix-device"},"children":["Step 5"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"import FinixTapToPaySDK\n\nlet configuration = TapToPayConfiguration(\n    credentials: TapToPayConfiguration.APICredentials(\n        username: \"USxxxxxxxxxxxxx\",\n        password: \"{your_api_secret}\"\n    ),\n    merchant: TapToPayConfiguration.MerchantInfo(\n        merchantId: \"MUxxxxxxxxxxxxx\",\n        merchantName: \"Your Merchant Display Name\"\n    ),\n    environment: .sandbox,\n    deviceId: \"DVxxxxxxxxxxxxx\"\n)\n\nlet tapToPay = FinixTapToPay(configuration: configuration)\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Environment naming collision in SwiftUI"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TapToPayConfiguration.Environment"]}," collides with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SwiftUI.Environment"]}," in files that import both. If you need to reference the type by name (not just a case like ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".sandbox"]},"), add a typealias:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"typealias TapToPayEnvironment = TapToPayConfiguration.Environment\n","lang":"swift"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Initialization makes no network calls; authentication happens on the first ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["linkAccount()"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prepareReader()"]},", or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["startTransaction()"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/installation"},"children":["Installation and initialization"]}," reference for the full ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TapToPayConfiguration"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MerchantInfo"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TransactionOptions"]}," field tables, and for the runtime methods (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["refreshConfiguration()"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["clearAllCaches()"]},")."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"8-sign-in-to-your-iphone-with-the-sandbox-account","__idx":8},"children":["8. Sign In to Your iPhone with the Sandbox Account"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sign your test iPhone in to the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/getting-started#create-an-apple-sandbox-account"},"children":["Sandbox Apple Account"]},":"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings"]}," app on the iPhone."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Tap your name at the top and sign out of the current Apple Account."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Sign in with the Sandbox Apple Account you created."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Use a dedicated test iPhone"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Signing in replaces the device's iCloud identity (photos, messages, iCloud Drive). Use a dedicated test iPhone rather than a personal device."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"9-link-the-merchant-account","__idx":9},"children":["9. Link the Merchant Account"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Follow the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/account-linking"},"children":["Account linking"]}," reference to call ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["linkAccount()"]}," and present Apple's Terms and Conditions flow."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Key points for your UI:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Gate all Tap to Pay entry points on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FinixTapToPay.isSupported()"]},"; this returns ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}," on unsupported hardware and the simulator."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Handle ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".accountAlreadyLinked"]}," as success (not an error); the merchant has already accepted Apple's Terms."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"10-prepare-the-reader","__idx":10},"children":["10. Prepare the Reader"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Follow the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/transactions#prepare-the-reader"},"children":["Transactions: Prepare the reader"]}," reference to call ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prepareReader()"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Key points:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Prepare the reader at app launch and on foreground, not just before a payment. This avoids visible latency at checkout."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enable ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autoPrepareOnForeground"]}," so an existing session is re-prepared automatically."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"11-process-transactions","__idx":11},"children":["11. Process Transactions"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Follow the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/transactions"},"children":["Transactions"]}," reference to start a sale, authorization, or refund. The SDK presents Apple's card-reading sheet, processes the payment through Finix, and returns a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TapToPayTransactionResult"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Key points:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Subscribe to transaction events before calling ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["startTransaction()"]},"; Apple expects your processing UI to appear within about one second of the merchant initiating a payment."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Show your processing screen immediately on the first event, not after the tap."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"12-test-your-integration","__idx":12},"children":["12. Test Your Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Run through the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/testing#manual-test-checklist"},"children":["manual test checklist"]}," on a physical iPhone, then ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/testing#verify-contactless-transactions-in-the-dashboard"},"children":["verify each transaction in the Sandbox Dashboard"]}," before requesting the distribution entitlement."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"13-review-privacy-disclosures","__idx":13},"children":["13. Review Privacy Disclosures"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Review ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/privacy"},"children":["Privacy and data collection"]}," and ensure your app's privacy disclosures accurately reflect the data the SDK collects."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"14-request-the-distribution-entitlement","__idx":14},"children":["14. Request the Distribution Entitlement"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Verify App Review requirements before requesting"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Walk through the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/app-review"},"children":["App Review requirements"]}," one more time against your built app before you request the distribution entitlement. Each requirement that isn't met adds another round of Apple feedback and delays your launch."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once your integration is complete and your app meets Apple's App Review requirements, request the distribution entitlement to enable TestFlight and App Store distribution."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["At the time Apple granted your Tap to Pay on iPhone entitlement, a follow-up email was sent describing the steps needed to publish your app:"]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/tap-to-pay-distribution-requirements-email.188a2276719ad7168b0155ed948b7e7fdb5d9358c0ac845d329fd9d85daf543b.08ff7529.png","alt":"Distribution requirements email from Apple","framed":false,"withLightbox":true},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Reply to the original Apple email thread requesting the distribution entitlement."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Upload any materials Apple requests (videos demonstrating your UX, etc.) using the link in the email."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Ensure your app meets all items in the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ios/tap-to-pay/app-review"},"children":["App Review requirements"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The distribution entitlement typically takes 1-2 weeks with one or two rounds of Apple feedback."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"TestFlight requires the distribution entitlement"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The distribution entitlement is required even for TestFlight; plan for the review lead time before any beta launch."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"15-go-live","__idx":15},"children":["15. Go Live"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once the distribution entitlement is granted, switch your integration to Production:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Create a new Finix Device against the Production API (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://finix.live-payments-api.com"]},") using your Production credentials and Production merchant."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Activate the new Device."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Update your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TapToPayConfiguration"]}," with Production credentials, the Production merchant ID, the Production Device ID, and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["environment: .production"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Sign the merchant's iPhone in with their regular Apple Account (not the Sandbox Apple Account)."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The rest of your integration stays the same."]}]},"headings":[{"value":"Integration Guide","id":"integration-guide","depth":1},{"value":"1. Review Apple's App Review Requirements","id":"1-review-apples-app-review-requirements","depth":2},{"value":"2. Configure Xcode and verify entitlement support","id":"2-configure-xcode-and-verify-entitlement-support","depth":2},{"value":"3. Collect your SDK values","id":"3-collect-your-sdk-values","depth":2},{"value":"4. Confirm Your App's Bundle ID","id":"4-confirm-your-apps-bundle-id","depth":2},{"value":"5. Create a Finix Device","id":"5-create-a-finix-device","depth":2},{"value":"6. Activate the Device","id":"6-activate-the-device","depth":2},{"value":"7. Install and Initialize the SDK","id":"7-install-and-initialize-the-sdk","depth":2},{"value":"8. Sign In to Your iPhone with the Sandbox Account","id":"8-sign-in-to-your-iphone-with-the-sandbox-account","depth":2},{"value":"9. Link the Merchant Account","id":"9-link-the-merchant-account","depth":2},{"value":"10. Prepare the Reader","id":"10-prepare-the-reader","depth":2},{"value":"11. Process Transactions","id":"11-process-transactions","depth":2},{"value":"12. Test Your Integration","id":"12-test-your-integration","depth":2},{"value":"13. Review Privacy Disclosures","id":"13-review-privacy-disclosures","depth":2},{"value":"14. Request the Distribution Entitlement","id":"14-request-the-distribution-entitlement","depth":2},{"value":"15. Go Live","id":"15-go-live","depth":2}],"frontmatter":{"seo":{"title":"Integration Guide | Tap to Pay on iPhone | Finix iOS","description":"Step-by-step guide to integrating the Finix Tap to Pay on iPhone SDK into your own iOS app, from device setup through distribution.","image":"/assets/ios-tap-to-pay-integration.912b75091d3e2cd469110a0df55cd25b31225191ec50ddd39d59a9c1e2e7a937.04fe652d.png"}},"lastModified":"2026-11-13T19:53:40.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ios/tap-to-pay/integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}