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

GooglePayPaymentMethodLauncher takes transactionId and returns error code #4069

Merged
merged 5 commits into from
Aug 2, 2021

Conversation

brnunes-stripe
Copy link
Contributor

Summary

  • Update GooglePayPaymentMethodLauncher.Args to take an optional transactionId argument that is passed to Google Pay.
  • Update GooglePayPaymentMethodLauncher.Result.Failed to return an error code.
    Will follow up with similar changes to GooglePayLauncher.

Motivation

Preparing GooglePayPaymentMethodLauncher to be used in Payment Sheet.

Testing

  • Added tests
  • Modified tests
  • Manually verified

Comment on lines +267 to +269
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.TYPE)
@IntDef(INTERNAL_ERROR, DEVELOPER_ERROR, NETWORK_ERROR)
annotation class ErrorCode
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are meant to be very high level to define the error message to be shown to the user.

@brnunes-stripe brnunes-stripe merged commit 83ed012 into master Aug 2, 2021
@brnunes-stripe brnunes-stripe deleted the brnunes/gpay branch August 2, 2021 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants