-
Notifications
You must be signed in to change notification settings - Fork 658
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
Add Stripe.createRadarSession() API binding #3737
Conversation
Add support for creating a Radar Session through `/v1/radar/sessions`. `Stripe.advancedFraudSignalsEnabled` must be set to `true` (i.e. the default value) to use this method.
import java.util.Calendar | ||
import kotlin.coroutines.CoroutineContext | ||
|
||
internal interface FingerprintDataRepository { | ||
@UiThread |
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.
should this be @WorkerThread
?
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.
@UiThread
because it is safe to call from the main thread.
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.
hmm from the doc a method is annotated with @UiThread
only when it has to be run on ui thread - but it seems #refresh
doesn't have to be called on ui thread right?
import java.util.Calendar | ||
import kotlin.coroutines.CoroutineContext | ||
|
||
internal interface FingerprintDataRepository { | ||
@UiThread |
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.
hmm from the doc a method is annotated with @UiThread
only when it has to be run on ui thread - but it seems #refresh
doesn't have to be called on ui thread right?
Summary
Add support for creating a Radar Session through
/v1/radar/sessions
.Stripe.advancedFraudSignalsEnabled
must betrue
(i.e.the default value) to use this method.
Motivation
RUN_MOBILESDK-200
Testing