Collect swiped or tapped dataBeta
Use Terminal for data collection with the reader hardware interfaces.
Available in: All supported countries for BBPOS Chipper2X BT and Stripe M2 using Android SDK and iOS SDK 3.
and up
Use the Terminal SDK to read non-PCI payment instruments, such as gift cards, using the reader’s hardware interfaces like the magnetic stripe reader. This feature isn’t available offline.
Beta
Request access to the Collect data beta by sending an email to terminal-collect-data@stripe.com.
After swiping the card, the Terminal SDK provides a tokenised data object. Securely retrieve the cleartext track data on your backend with the token.
The Terminal reader only reads and stores cleartext magstripe data that follows these formats:
- The card data is available on track 2 only.
- The card data uses only the ISO/IEC-7813 track 2 start sentinel
;
and end sentinel?
, without the separator character. - The card data consists only of numeric digits.
Contact the Terminal team with your card format and BIN ranges if your card numbers don’t match one of these approved formats.
Collect data
Use Terminal.
to prompt for data collection from your point of sale application. Specify the type of collected data you want to receive, such as magstripe, in a configuration passed to the function. After a card is swiped, the SDK returns a token representing the data, or an error if the swipe was unsuccessful. Use this token in your integration to refer to the data.
Fetch collected data
When you need to perform operations such as redeeming a gift card, fetch the cleartext data from your backend using the collected data token. The collected data is stored on Stripe’s servers for 24 hours.
Note
Stripe doesn’t perform and isn’t responsible for the authentication of collected data or the authorization of transactions using collected data. Stripe isn’t liable for any illegal conduct or fraud by any third party associated with the collected data.