Skip to content
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

Merged
merged 6 commits into from
May 20, 2021

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

Add support for creating a Radar Session through /v1/radar/sessions.

Stripe.advancedFraudSignalsEnabled must be true (i.e.
the default value) to use this method.

Motivation

RUN_MOBILESDK-200

Testing

  • Added tests
  • Modified tests
  • Manually verified

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.
stripe/src/main/java/com/stripe/android/Stripe.kt Outdated Show resolved Hide resolved
import java.util.Calendar
import kotlin.coroutines.CoroutineContext

internal interface FingerprintDataRepository {
@UiThread
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be @WorkerThread ?

Copy link
Collaborator Author

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.

Copy link
Collaborator

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
Copy link
Collaborator

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?

@mshafrir-stripe mshafrir-stripe merged commit f153ba2 into master May 20, 2021
@mshafrir-stripe mshafrir-stripe deleted the create-radar-session branch May 20, 2021 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants