diff --git a/CHANGELOG.md b/CHANGELOG.md index e83c07bb45..63d697fe49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Braintree Android SDK Release Notes +## unreleased + +* Google Pay + * Add `GooglePayClient#tokenize(PaymentData, GooglePayOnActivityResultCallback)` to be invoked after direct Google Play Services integration + ## 4.44.0 (2024-04-05) * Local Payment diff --git a/GooglePay/src/main/java/com/braintreepayments/api/GooglePayClient.java b/GooglePay/src/main/java/com/braintreepayments/api/GooglePayClient.java index 344250397b..118e49470d 100644 --- a/GooglePay/src/main/java/com/braintreepayments/api/GooglePayClient.java +++ b/GooglePay/src/main/java/com/braintreepayments/api/GooglePayClient.java @@ -332,15 +332,15 @@ public void onResult(@Nullable Configuration configuration, @Nullable Exception } /** - * This method is called when you've received a successful {@link PaymentData} response in - * {@link GooglePayClient#onActivityResult(int, Intent, GooglePayOnActivityResultCallback)} - * to get a {@link GooglePayCardNonce} or {@link PayPalAccountNonce}. + * Call this method when you've received a successful {@link PaymentData} response from a + * direct Google Play Services integration to get a {@link GooglePayCardNonce} or + * {@link PayPalAccountNonce}. * - * @param paymentData {@link PaymentData} from the Intent in - * {@link GooglePayClient#onActivityResult(int, Intent, GooglePayOnActivityResultCallback)} method. + * @param paymentData {@link PaymentData} retrieved from directly integrating with Google Play + * Services through {@link PaymentsClient#loadPaymentData(PaymentDataRequest)} * @param callback {@link GooglePayOnActivityResultCallback} */ - void tokenize(PaymentData paymentData, GooglePayOnActivityResultCallback callback) { + public void tokenize(PaymentData paymentData, GooglePayOnActivityResultCallback callback) { try { JSONObject result = new JSONObject(paymentData.toJson()); callback.onResult(GooglePayCardNonce.fromJSON(result), null);