-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename collect input types. #721
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes 👍
@@ -859,14 +859,14 @@ class StripeTerminalReactNativeModule(reactContext: ReactApplicationContext) : | |||
@ReactMethod | |||
@Suppress("unused") | |||
fun collectInputs(params: ReadableMap, promise: Promise) = withExceptionResolver(promise) { | |||
val collectInputs = requireParam(params.getArray("collectInputs")) { | |||
val collectInputs = requireParam(params.getArray("inputs")) { | |||
"You must provide a collectInputs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update error message to "inputs"
android/src/main/java/com/stripeterminalreactnative/StripeTerminalReactNativeModule.kt
Outdated
Show resolved
Hide resolved
…inalReactNativeModule.kt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Summary
Rename collect inputs type names to match JS SDK;
Motivation
The public facing type names for RN SDK is different from the JS SDK. Rename these types for the RN SDK to match that of the JS SDK.
Testing
Documentation
Select one: