-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PayPal: Remove Checkout Listener Pattern (#307)
* Migrate PaypalWebCheckoutClient.start away from listener pattern. * Update unit tests. * Remove PayPalWebStatus events for Checkout. * Clean up view model style. * Update CHANGELOG. * Add missing CardClient CHANGELOG bullets.
- Loading branch information
1 parent
898ba06
commit 4afcf91
Showing
10 changed files
with
156 additions
and
164 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
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
10 changes: 10 additions & 0 deletions
10
.../src/main/java/com/paypal/android/paypalwebpayments/PayPalWebCheckoutFinishStartResult.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.paypal.android.paypalwebpayments | ||
|
||
import com.paypal.android.corepayments.PayPalSDKError | ||
|
||
sealed class PayPalWebCheckoutFinishStartResult { | ||
class Success(val orderId: String?, val payerId: String?) : PayPalWebCheckoutFinishStartResult() | ||
class Failure(val error: PayPalSDKError, val orderId: String?) : PayPalWebCheckoutFinishStartResult() | ||
class Canceled(val orderId: String?) : PayPalWebCheckoutFinishStartResult() | ||
data object NoResult : PayPalWebCheckoutFinishStartResult() | ||
} |
26 changes: 0 additions & 26 deletions
26
...bPayments/src/main/java/com/paypal/android/paypalwebpayments/PayPalWebCheckoutListener.kt
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.