From c4437cd123ee060058197098deac77306dfa6742 Mon Sep 17 00:00:00 2001 From: Justin Warmkessel Date: Fri, 6 Dec 2024 12:34:54 -0800 Subject: [PATCH] Update comment for shopperSessionId --- .../com/braintreepayments/demo/ShopperInsightsFragment.kt | 6 +++--- .../java/com/braintreepayments/api/paypal/PayPalRequest.kt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Demo/src/main/java/com/braintreepayments/demo/ShopperInsightsFragment.kt b/Demo/src/main/java/com/braintreepayments/demo/ShopperInsightsFragment.kt index b963d2a121..1ee7775b6b 100644 --- a/Demo/src/main/java/com/braintreepayments/demo/ShopperInsightsFragment.kt +++ b/Demo/src/main/java/com/braintreepayments/demo/ShopperInsightsFragment.kt @@ -61,14 +61,14 @@ class ShopperInsightsFragment : BaseFragment() { private lateinit var venmoStartedPendingRequest: VenmoPendingRequest.Started private lateinit var paypalStartedPendingRequest: PayPalPendingRequest.Started - private var sessionId: String = "test-shopper-session-id" + private var shopperSessionId: String = "test-shopper-session-id" override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View? { - shopperInsightsClient = ShopperInsightsClient(requireContext(), authStringArg, sessionId) + shopperInsightsClient = ShopperInsightsClient(requireContext(), authStringArg, shopperSessionId) venmoClient = VenmoClient(requireContext(), super.getAuthStringArg(), null) payPalClient = PayPalClient( @@ -233,7 +233,7 @@ class ShopperInsightsFragment : BaseFragment() { emailInput.editText?.text.toString(), countryCodeInput.editText?.text.toString(), nationalNumberInput.editText?.text.toString(), - sessionId + shopperSessionId ) ) { authRequest -> diff --git a/PayPal/src/main/java/com/braintreepayments/api/paypal/PayPalRequest.kt b/PayPal/src/main/java/com/braintreepayments/api/paypal/PayPalRequest.kt index e970e9dd8f..52dbc49e6d 100644 --- a/PayPal/src/main/java/com/braintreepayments/api/paypal/PayPalRequest.kt +++ b/PayPal/src/main/java/com/braintreepayments/api/paypal/PayPalRequest.kt @@ -72,8 +72,8 @@ import org.json.JSONException * where the user has a PayPal Account with the same email. * @property userPhoneNumber User phone number used to initiate a quicker authentication flow in * cases where the user has a PayPal Account with the phone number. - * @property shopperSessionId value should be the shopper session ID returned from your server SDK - * request. + * @property shopperSessionId the shopper session ID returned from your shopper insights server SDK + * integration * @property lineItems The line items for this transaction. It can include up to 249 line items. */ abstract class PayPalRequest internal constructor(