The Finix Tap to Pay on iPhone demo app is a small SwiftUI reference integration that allows you to run test transactions. Running it first gives you a working example to reference before building the flow into your own app.
Do not continue until Apple has granted your Tap to Pay on iPhone entitlement. The demo app will not run without it.
Before you start, complete the Getting Started guide. You'll need:
- Apple's Tap to Pay on iPhone entitlement granted to your developer account.
- A sandbox Apple Account to sign in on the test iPhone.
- Your Finix merchant credentials and IDs from the Finix Dashboard.
Each Finix Device is keyed to the merchant and the iPhone's serial number. The Device you create here uses the demo app's app_bundle_id. When you integrate the SDK into your application, create a separate Device for your production app's Bundle Identifier.
- Go to the demo app repository on GitHub.
- Click Code → Download ZIP (or clone the repo).

- Open
FinixTapToPaySDKDemo.xcodeprojin Xcode.
The demo app's Bundle Identifier is what you'll use to create a Finix Device. Change the default identifier to one belonging to your team, then copy it.
- In Xcode, select the FinixTapToPaySDKDemo project in the navigator.
- Select the FinixTapToPaySDKDemo target and go to Signing & Capabilities.
- Under Signing, change the default Bundle Identifier (e.g.,
com.yourcompany.FinixTapToPayDemo). - Copy the new Bundle Identifier; you'll need it in the next step.

- Select your Team.
Sign your test iPhone in to the Sandbox Apple Account:
- Open the Settings app on the iPhone.
- Tap your name at the top and sign out of the current Apple Account.
- Sign in with the Sandbox Apple Account you created.
Signing in replaces the device's iCloud identity (photos, messages, iCloud Drive). Use a dedicated test iPhone rather than a personal device.

Create a Finix Device resource for the demo app bundle ID you just copied. Provide the app_bundle_id from the previous step.
Each Device uses a single app_bundle_id and is keyed to the merchant and this iPhone. Use the demo app's Bundle Identifier here, not the Bundle Identifier of the production app you plan to integrate with the Tap to Pay iOS SDK later.
curl -i -X POST \
-u {your_api_key}:{your_api_secret} \
https://finix.sandbox-payments-api.com/merchants/{merchant_id}/devices \
-H 'Content-Type: application/json' \
-H 'Finix-Version: 2022-02-01' \
-d '{
"app_bundle_id": "{your_demo_app_bundle_id}",
"description": "iOS Tap to Pay demo device",
"model": "IOS_TAP_TO_PAY",
"name": "iPhone Tap to Pay Demo - {merchant name}",
"serial_number": "{reader_identifier}"
}'Substitute your demo app's Bundle Identifier for {your_demo_app_bundle_id}. In your real integration, serial_number is Apple's per-device reader identifier obtained at runtime via PaymentCardReader().readerIdentifier; see the Integration Guide and Device in the SDK Reference for the production pattern.
Copy the id from the response; you need it to activate the Device and to configure the demo app.
{
"id": "DVhNuqCgLmtHs6ZS9RSucm9x",
"created_at": "2026-09-25T20:05:14.758628Z",
"updated_at": "2026-09-25T20:05:14.758628Z",
"configuration_details": {
"allow_debit": true,
"allow_standalone_authorizations": false,
"allow_standalone_refunds": false,
"allow_standalone_sales": false,
"automatic_receipt_delivery_methods": null,
"available_receipt_methods": null,
"bypass_device_on_capture": true,
"check_for_duplicate_transactions": true,
"display_tip_on_receipt": false,
"idle_image_file_id": null,
"idle_message": null,
"prompt_amount_confirmation": true,
"prompt_for_signature": "NEVER",
"prompt_manual_entry": false,
"prompt_receipt_confirmation": true,
"prompt_tip_on_screen": false,
"signature_threshold_amount": 10000,
"surcharge_basis_points": null,
"tipping_details": {
"fixed_options": [
100,
150,
200
],
"percent_options": [
18,
20,
22
],
"percent_tipping_threshold": 0
}
},
"description": "iOS Tap to Pay device",
"enabled": true,
"idle_message": null,
"integration_mode": "PAYMENT_APP",
"merchant": "MUiV7ntxfY4eyJxp6E7cZvym",
"model": "IOS_TAP_TO_PAY",
"name": "iPhone Tap to Pay - Michael Johnson",
"serial_number": "cdb7ac638cb455f6d85e791115c0a4fd3cf6cbcdb874cbf30c871bc312zy3abc",
"tags": {},
"_links": {
"self": {
"href": "https://finix.sandbox-payments-api.com/devices/DVhNuqCgLmtHs6ZS9RSucm9x"
},
"merchant": {
"href": "https://finix.sandbox-payments-api.com/merchants/MUiV7ntxfY4eyJxp6E7cZvym"
},
"transfers": {
"href": "https://finix.sandbox-payments-api.com/transfers"
},
"authorizations": {
"href": "https://finix.sandbox-payments-api.com/authorizations"
}
}
}The example response above shows "enabled": true because it is a shared fixture. A newly-created Device actually returns with "enabled": false and must be activated in the next step.
The Device is disabled by default. Activate it before running the demo app.
curl -i -X PUT \
-u {your_api_key}:{your_api_secret} \
https://finix.sandbox-payments-api.com/devices/{device_id} \
-H 'Content-Type: application/json' \
-H 'Finix-Version: 2022-02-01' \
-d '{ "action": "ACTIVATE" }'A successful response returns the Device with "enabled": true.
- In Xcode, select your connected iPhone as the run destination.
- Click Build and Run (the play button).

The demo app may show build warnings. These are expected and do not prevent the app from running.
When the app opens:
- Tap the configuration button (the three-dots icon in the top-right corner).

- Tap the Sandbox tab and enter the values you gathered previously:
| Value | Format | Where to find it |
|---|---|---|
| API username | USxxxxxxxxxxxxx | From the Finix Dashboard. |
| API password | Issued with the username. | Shown once in the Dashboard when the key is created. Treat as a secret. |
| Merchant ID | MUxxxxxxxxxxxxx | From the Finix Dashboard. |
| Merchant display name | Shown to the Buyer on Apple's tap screen. | From the Merchant details page. |
| Device ID | DVxxxxxxxxxxxxx | Created in Set up a Device. |

The Configuration screen also has a Production tab. You don't need it for the happy path. Once your own app is working in Sandbox, you'll move to production testing in your app rather than the demo. The tab is provided for debugging; functionally it is identical to Sandbox and only points at the production backend for card processing.
Before taking a payment, the merchant's Apple Account must be linked. In the demo app, tap the 3 dots in the top right corner, and tap Link Account.
If the account is not yet linked, Apple presents its Terms and Conditions screen. After the merchant accepts, the account is linked.

Tap Prepare. The SDK readies the iPhone to accept payments in the background. When preparation completes, you'll see a success confirmation.

You may process sales, authorizations and refunds using the demo application.
To process a test transaction:
- Confirm the reader is prepared by reading the logs.
- Tap Sale.
- Enter an Amount.
- Tap Tap to Pay on iPhone.

When prompted, tap the Finix sandbox test card (or an Apple Pay Sandbox test card) against the iPhone.


The demo app indicates if the transaction succeeded or failed.
With a working reference integration, continue to the Integration guide to add the Tap to Pay iOS SDK to your own app.