-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Google Pay Public Methods Single Result (#862)
* Update Google Pay * Update CHANGELOG * Fix spacing
- Loading branch information
Showing
5 changed files
with
40 additions
and
22 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
21 changes: 21 additions & 0 deletions
21
GooglePay/src/main/java/com/braintreepayments/api/GooglePayTokenizationParameters.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,21 @@ | ||
package com.braintreepayments.api | ||
|
||
import com.google.android.gms.wallet.PaymentMethodTokenizationParameters | ||
|
||
/** | ||
* A request used to get Braintree specific tokenization parameters for a Google Pay | ||
*/ | ||
sealed class GooglePayTokenizationParameters { | ||
|
||
/** | ||
* The request was successfully created | ||
*/ | ||
class Success(val parameters: PaymentMethodTokenizationParameters, | ||
val allowedCardNetworks: Collection<Integer> | ||
) : GooglePayTokenizationParameters() | ||
|
||
/** | ||
* There was an [error] creating the request | ||
*/ | ||
class Failure(val error: Exception) : GooglePayTokenizationParameters() | ||
} |
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