Skip to content

Commit

Permalink
Update v5_MIGRATION_GUIDE.md
Browse files Browse the repository at this point in the history
Co-authored-by: sshropshire <[email protected]>
  • Loading branch information
sarahkoop and sshropshire authored Dec 18, 2023
1 parent 77e1a97 commit 7f8e8af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v5_MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ class MyActivity : FragmentActivity() {
- googlePayClient.requestPayment(activity, request)
+ googlePayClient.createPaymentAuthRequest(this, request) { paymentAuthRequest ->
+ when (paymentAuthRequest) {
+ is paymentAuthRequest.Failure -> { /* handle error */ }
+ is paymentAuthRequest.ReadyToLaunch -> {
+ is GooglePayPaymentAuthRequest.Failure -> { /* handle error */ }
+ is GooglePayPaymentAuthRequest.ReadyToLaunch -> {
+ googlePayLauncher.launch(paymentAuthRequest.params)
+ }
+ }
Expand Down

0 comments on commit 7f8e8af

Please sign in to comment.