-
Notifications
You must be signed in to change notification settings - Fork 241
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
Google pay single result #842
Merged
+290
−157
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
c8f27df
Add GooglePayResult
sarahkoop 353524b
Implement GooglePayResult
sarahkoop 832c75e
Fix unit tests for tokenize
sarahkoop d9bc436
Add GooglePayIsReadyToPayResult
sarahkoop fdda053
Implement ready to pay result
sarahkoop 912cb3f
Fix demo
sarahkoop 20827d0
Rename payment auth request
sarahkoop 3101608
Add GooglePayPaymentAuthRequest
sarahkoop ac1c9d2
Implement GooglePayPaymentAuthRequest result
sarahkoop a4c56fe
Fix unit tests
sarahkoop 9746f27
Fix demo app
sarahkoop c94af04
Fix demo integration
sarahkoop a52e641
Update CHANGELOG and migration guide
sarahkoop 45994f0
Add ready to pay to migration guide
sarahkoop 9a1699c
Merge branch 'v5' into google_pay_single_result
sarahkoop 110ba31
Update GooglePay/src/main/java/com/braintreepayments/api/GooglePayCli…
sarahkoop f5e5c19
Convert error to cause
sarahkoop a5525b6
Revert error to cause changes
sarahkoop 8b834c0
Update GooglePay/src/main/java/com/braintreepayments/api/GooglePayCli…
sarahkoop ab9e6f2
Update GooglePay/src/main/java/com/braintreepayments/api/GooglePayCli…
sarahkoop 179f897
Fix spacing
sarahkoop db4037c
Merge branch 'google_pay_single_result' of https://github.com/braintr…
sarahkoop 77e1a97
Update v5_MIGRATION_GUIDE.md
sarahkoop 7f8e8af
Update v5_MIGRATION_GUIDE.md
sarahkoop 397a941
Merge branch 'v5' into google_pay_single_result
sarahkoop File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Implement GooglePayPaymentAuthRequest result
commit ac1c9d2e92a2e35f6d14a4242a58c6b11408a818
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
5 changes: 1 addition & 4 deletions
5
GooglePay/src/main/java/com/braintreepayments/api/GooglePayPaymentAuthRequestCallback.java
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,13 +1,10 @@ | ||
package com.braintreepayments.api; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
/** | ||
* Callback to handle result from | ||
* {@link GooglePayClient#createPaymentAuthRequest(GooglePayRequest, GooglePayPaymentAuthRequestCallback)} | ||
*/ | ||
public interface GooglePayPaymentAuthRequestCallback { | ||
|
||
void onResult(@Nullable GooglePayPaymentAuthRequestParams paymentAuthRequest, | ||
@Nullable Exception error); | ||
void onGooglePayPaymentAuthRequest(GooglePayPaymentAuthRequest paymentAuthRequest); | ||
} |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is oddly specific heh. No action, just commenting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah... it is getting pretty verbose open to alternative callback naming! The previous pattern was always naming it
onResult
which is a little confusing when the result we are returning is actually a request object