ShopperInsightsClient

Use ShopperInsightsClient to optimize your checkout experience by prioritizing the customer’s preferred payment methods in your UI. By customizing each customer’s checkout experience, you can improve conversion, increase sales/repeat buys and boost user retention/loyalty.

Note: This feature is in beta. It's public API may change in future releases.

Constructors

Link copied to clipboard
constructor(context: Context, authorization: String, shopperSessionId: String? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Retrieves recommended payment methods based on the provided shopper insights request.

Link copied to clipboard

Indicates whether the PayPal App is installed.

Link copied to clipboard

Indicates whether the Venmo App is installed.

Link copied to clipboard
fun sendPresentedEvent(buttonType: ButtonType, presentmentDetails: PresentmentDetails)

Call this method when the PayPal, Venmo or Other button has been successfully displayed to the buyer. This method sends analytics to help improve the Shopper Insights feature experience.

Link copied to clipboard
fun sendSelectedEvent(buttonType: ButtonType)

Call this method when the PayPal, Venmo or Other button has been selected/tapped by the buyer. This method sends analytics to help improve the Shopper Insights feature experience.