stripe / stripe-terminal-react-native

React Native SDK for Stripe Terminal
https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=react-native
MIT License
110 stars 50 forks source link

Update collectData response to return as a CollectDataResultType #849

Closed mindy-stripe closed 1 week ago

mindy-stripe commented 1 week ago

Summary

Fix Terminal.collectData to return the collected data in the correct CollectDataResultType format. The previous solution was directly returning the collected data object, when it should be returning it nested inside a collectedData key as defined in CollectDataResultType.

cc-ing @EricLin-BBpos who worked on the initial PR: #765

Motivation

Internal ticket filed by QA: https://jira.corp.stripe.com/browse/TERMINAL-41707

Testing

Tested manually with the dev-app. Ran npx react-native run-ios --device

Documentation

Select one: