Skip to content

Commit

Permalink
Fix demo integration
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahkoop committed Nov 9, 2023
1 parent 5e61f3f commit 59069e6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public View onCreateView(@NonNull LayoutInflater inflater,
braintreeClient = getBraintreeClient();
googlePayClient = new GooglePayClient(braintreeClient);
googlePayLauncher = new GooglePayLauncher(this,
googlePayResult -> googlePayClient.tokenize(googlePayResult,
paymentAuthResult -> googlePayClient.tokenize(paymentAuthResult,
(paymentMethodNonce, error) -> {
if (error != null) {
handleError(error);
Expand Down Expand Up @@ -118,7 +118,7 @@ public void launchGooglePay(View v) {
.build());

googlePayClient.createPaymentAuthRequest(googlePayRequest,
(googlePayIntentData, error) -> googlePayLauncher.launch(googlePayIntentData));
(paymentAuthRequest, error) -> googlePayLauncher.launch(paymentAuthRequest));
}

private void handleGooglePayActivityResult(PaymentMethodNonce paymentMethodNonce) {
Expand Down

0 comments on commit 59069e6

Please sign in to comment.