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
Summary
Fix
Terminal.collectData
to return the collected data in the correctCollectDataResultType
format. The previous solution was directly returning the collected data object, when it should be returning it nested inside acollectedData
key as defined inCollectDataResultType
.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: