From 8f2be5e0bc2201e9f805fec363421c25b6b3380e Mon Sep 17 00:00:00 2001 From: Jax DesMarais-Leder Date: Wed, 5 Oct 2022 10:31:05 -0500 Subject: [PATCH] Disable PayPal Native Checkout Exit Survey (#598) * Remove exit survey when canceling PayPal Native Checkout flow --- CHANGELOG.md | 1 + .../api/PayPalNativeCheckoutClient.java | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a901cb8e5..6e39c17a90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * PayPalNativeCheckout (BETA) * Bumping native-checkout version to 0.8.2 * Fixes an issue where merchants with multiple client IDs would fallback to web on subsequent checkout sessions + * Remove exit survey when canceling Native Checkout flow ## 4.16.0 diff --git a/PayPalNativeCheckout/src/main/java/com/braintreepayments/api/PayPalNativeCheckoutClient.java b/PayPalNativeCheckout/src/main/java/com/braintreepayments/api/PayPalNativeCheckoutClient.java index d42787ea4b..56128743ed 100644 --- a/PayPalNativeCheckout/src/main/java/com/braintreepayments/api/PayPalNativeCheckoutClient.java +++ b/PayPalNativeCheckout/src/main/java/com/braintreepayments/api/PayPalNativeCheckoutClient.java @@ -9,6 +9,9 @@ import com.paypal.checkout.approve.ApprovalData; import com.paypal.checkout.config.CheckoutConfig; import com.paypal.checkout.config.Environment; +import com.paypal.checkout.config.SettingsConfig; +import com.paypal.checkout.config.UIConfig; + import com.paypal.pyplcheckout.common.instrumentation.PEnums; import com.paypal.pyplcheckout.common.instrumentation.PLog; @@ -161,7 +164,14 @@ private void sendPayPalRequest( new CheckoutConfig( activity.getApplication(), configuration.getPayPalClientId(), - environment + environment, + null, + null, + null, + new SettingsConfig(), + new UIConfig( + false + ) ) );