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

Deprecate StripeIntent.redirectData #2497

Merged
merged 19 commits into from
May 20, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update javadoc strings
  • Loading branch information
smaskell-stripe committed May 20, 2020
commit 2d2cdd1530830e1aba674af8f15b011581f5a8aa
16 changes: 16 additions & 0 deletions stripe/src/main/java/com/stripe/android/model/StripeIntent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,28 @@ interface StripeIntent : StripeModel {
val number: String? = null
) : NextActionData()

/**
* Contains instructions for authenticating by redirecting your customer to another
* page or application.
*/
@Parcelize
data class RedirectToUrl(
/**
* The URL you must redirect your customer to in order to authenticate.
*/
val url: Uri,
/**
* If the customer does not exit their browser while authenticating, they will be redirected
* to this specified URL after completion.
*/
val returnUrl: String?
) : NextActionData()

/**
* When confirming a [PaymentIntent] or [SetupIntent] with the Stripe SDK, the Stripe SDK
* depends on this property to invoke authentication flows. The shape of the contents is subject
* to change and is only intended to be used by the Stripe SDK.
*/
sealed class SdkData : NextActionData() {
@Parcelize
data class Use3DS1(
Expand Down