Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Finance automation
Platforms and marketplaces
Money management
Developer tools
Get started
Payments
Finance automation
Get started
Payments
Finance automation
Platforms and marketplaces
Money management
Overview
About Stripe payments
Upgrade your integration
Payments analytics
Online payments
OverviewFind your use caseManaged Payments
Use Payment Links
Build a checkout page
Build an advanced integration
Build an in-app integration
Payment methods
Add payment methods
Manage payment methods
Faster checkout with Link
Payment interfaces
Payment Links
Checkout
Web Elements
In-app Elements
Payment scenarios
Custom payment flows
Flexible acquiring
Orchestration
In-person payments
Terminal
    Overview
    Accept in-person payments
    Integration design
    Select your reader
    Design an integration
    Quickstart
    Example applications
    Testing
    Terminal setup
    Set up your integration
    Connect to a reader
    Accepting a payment
    Collect card payments
    Accept offline payments
    Mail order and telephone order payments
    Regional considerations
    During checkout
    Collect tips
    Collect and save payment details for future use
    Flexible authorizations
    After checkout
    Refund transactions
    Provide receipts
    Customize checkout
    Cart display
    Collect on-screen inputs
    Collect swiped data
    Collect tapped data for NFC instruments
    Apps on devices
    Manage readers
    Order, return, replace readers
    Register readers
    Manage locations and zones
    Configure readers
    Encryption
    References
    API references
    Mobile readers
    Smart readers
    SDK migration guide
    Deployment checklist
    Stripe Terminal reader product sheets
Other Stripe products
Financial Connections
Crypto
Climate
HomePaymentsTerminal

Collect tapped data for NFC instrumentsPrivate preview

Use Terminal for data collection of NFC instruments with the reader hardware interfaces.

Copy page

Private preview

Request access to the Collect data private preview by sending an email to terminal-collect-data@stripe.com. Provide your use case, Terminal device, and integration type.

Use the Terminal SDK and the reader’s contactless interface to read the unique identifier (UID) of NFC instruments, such as cards or wristbands. This feature is available offline.

After tapping your NFC instrument, the Terminal SDK provides a collected data object with the NFC UID, or an error if one occurred.

Warning

You can’t use this feature to collect card payments. Follow these instructions to collect payments using Stripe Terminal.

Collecting tapped data for NFC instruments is available in:

  • All supported countries for Stripe M2 using Android SDK and iOS SDK 4.2.0 or later.
  • All supported countries for Stripe Reader S700 on reader software version 2.29.6.0 or later using Android SDK, Apps on Devices 4.2.0 or later, and iOS SDK 4.4.0 or later.

Collect data

SDK Reference

  • collectData (iOS)

Use Terminal.collectData() to prompt for data collection from your point of sale application. Specify the type of collected data you want to receive, such as NFC UID, in a configuration passed to the function. After tapping an NFC instrument, the SDK returns a collected data object with the NFC UID, or an error if the read was unsuccessful.

Swift
import UIKit import StripeTerminal class PaymentViewController: UIViewController { func readNfcUid() throws { let config = try CollectDataConfigurationBuilder().setCollectDataType(.nfcUid).build() self.cancelable = Terminal.shared.collectData(config) { collectedData, collectError in if let error = collectError { // Placeholder for handling exceptions } else if let nfcUid = collectedData?.nfcUid { // Placeholder for receiving NFC UID print("NFC UID is: \(nfcUid)") } } } }
Was this page helpful?
YesNo
Need help? Contact Support.
Join our early access program.
Check out our changelog.
Questions? Contact Sales.
LLM? Read llms.txt.
Powered by Markdoc