-
Notifications
You must be signed in to change notification settings - Fork 52
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
bump native SDKs to 3.1 #558
Conversation
add user cancellation for internet readers.
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.
Android changes LGTM 👍
@@ -537,12 +541,13 @@ class StripeTerminalReactNativeModule(reactContext: ReactApplicationContext) : | |||
} | |||
|
|||
val customerConsentCollected = getBoolean(params, "customerConsentCollected") | |||
val enableCustomerCancellation = getBoolean(params, "enableCustomerCancellation") |
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.
Does getBoolean()
default to false
if it's not provided?
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.
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.
iOS changes lgtm 👍
@@ -4,6 +4,7 @@ import android.annotation.SuppressLint | |||
import android.app.Application | |||
import android.content.ComponentCallbacks2 | |||
import android.content.res.Configuration | |||
import android.util.Log |
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.
this seems unused ✂️
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.
got it.
export type CollectSetupIntentPaymentMethodParams = { | ||
customerConsentCollected?: boolean; | ||
enableCustomerCancellation?: boolean; | ||
setupIntent: SetupIntent.Type; | ||
}; |
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.
Does order matter?
Also in the other SDKs, we create a new "config" class that contained the enableCustomerCancellation
param.
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.
(also 👋 Ian!)
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.
Hi, Michael, the order doesnt matter, we just need to match them well. right? @nazli-stripe
05cce13
Summary
bump native SDKs to 3.1.0.
Motivation
add user cancellation for internet readers.
Testing
Documentation
Select one: