ExpressCheckoutCalloutView

class ExpressCheckoutCalloutView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : AbstractComposeView

The ExpressCheckoutCallout widget displays similar informational content as the Callout widget with additional messaging on where to find Catch in the checkout flow.

It is intended to be displayed in merchant checkout flows in which an express checkout option is present. Since Catch can only be selected on the final step of checkout, this messaging is meant to reduce confusion if the consumer intends to pay with Catch but does not see it displayed as an express checkout option. The widget also includes a button to open an informational modal with more details about paying with Catch and with links to visit Catch's marketing website.

The ExpressCheckoutCallout widget makes use of its price, items, and userCohorts properties to calculate rewards the user will earn on the current purchase.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)

Functions

Link copied to clipboard
open override fun Content()

Properties

Link copied to clipboard

The BorderStyle that the widget renders. Defaults to the BorderStyle.None style.

Link copied to clipboard

The Catch color CatchColorTheme. If no theme is set, the theme set globally on the com.android.getcatch.Catch object will be used, which defaults to CatchColorTheme.Light.

Link copied to clipboard
var items: List<Item>?

A list of all items included in the order. Used to calculate item-based rewards.

Link copied to clipboard
var price: Int?

The cost in cents that a consumer would pay for the item(s) without redeeming Catch credit.

Link copied to clipboard

Style overrides which can be used to override the widget's default appearance (ex. font size, color, weight, etc.).

Link copied to clipboard

A list of user cohorts that the signed in user qualifies for. Used to calculate user cohort based rewards.