-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove url parsing from 3DS deep link return URLs to match feature parity with iOS. * Fix unit tests broken from removing deprecated methods. * Clean up CHANGELOG post-v2 beta merge. * Update CHANGELOG. * Update CHANGELOG and fix build errors from internal constructors. * Add 3DS result to CardVaultResult View. * Fix VaultCardView to use CardVaultResultView.
- Loading branch information
1 parent
ef559fd
commit bb18e81
Showing
8 changed files
with
33 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 2 additions & 14 deletions
16
CardPayments/src/main/java/com/paypal/android/cardpayments/CardResult.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,17 @@ | ||
package com.paypal.android.cardpayments | ||
|
||
import android.net.Uri | ||
import androidx.annotation.RestrictTo | ||
|
||
/** | ||
* A result returned by [CardClient] when an order was successfully approved with a [Card]. | ||
* | ||
* @property [orderId] associated order ID. | ||
* @property [liabilityShift] Liability shift value returned from 3DS verification | ||
* @property [status] status of the order | ||
* @property [didAttemptThreeDSecureAuthentication] 3DS verification was attempted. | ||
* Use v2/checkout/orders/{orderId} in your server to get verification results. | ||
*/ | ||
data class CardResult( | ||
data class CardResult @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) constructor( | ||
val orderId: String, | ||
|
||
/** | ||
* @suppress | ||
*/ | ||
@Deprecated("Use status instead.") | ||
val deepLinkUrl: Uri? = null, | ||
|
||
@Deprecated("Use didAttemptThreeDSecureAuthentication instead.") | ||
val liabilityShift: String? = null, | ||
|
||
val status: String? = null, | ||
|
||
val didAttemptThreeDSecureAuthentication: Boolean = false | ||
) |
12 changes: 7 additions & 5 deletions
12
CardPayments/src/main/java/com/paypal/android/cardpayments/CardVaultResult.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
package com.paypal.android.cardpayments | ||
|
||
import androidx.annotation.RestrictTo | ||
|
||
/** | ||
* @suppress | ||
* | ||
* A result returned by [CardClient] when an a successful vault occurs. | ||
* | ||
* @param setupTokenId the id for the setup token that was recently updated | ||
* @param status the status of the updated setup token | ||
* @property [didAttemptThreeDSecureAuthentication] 3DS verification was attempted. | ||
* Use v2/checkout/orders/{orderId} in your server to get verification results. | ||
*/ | ||
// NEXT MAJOR VERSION: make `CardVaultResult` constructor private | ||
data class CardVaultResult( | ||
data class CardVaultResult @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) constructor( | ||
val setupTokenId: String, | ||
val status: String, | ||
val status: String? = null, | ||
val didAttemptThreeDSecureAuthentication: Boolean = false | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters