Package-level declarations

Functions

Link copied to clipboard
fun Callout(price: Int = 0, items: List<Item>? = null, userCohorts: List<String>? = null, hasOrPrefix: Boolean = false, borderStyle: CalloutBorderStyle = CalloutBorderStyle.None, colorTheme: CatchColorTheme? = null, styleOverrides: InfoWidgetStyle? = null)

The Callout widget shows consumers how much Catch credit they could earn or redeem based on the price of the item(s) they're considering (e.g. when viewing a product detail page or their cart).

Link copied to clipboard
fun CampaignLink(campaignName: String, borderStyle: BorderStyle = BorderStyle.SlightRound, colorTheme: CatchColorTheme? = null, styleOverrides: ActionWidgetStyle? = null)

The CampaignLink widget is designed to be displayed on your order confirmation page if Catch was not used as a payment method to offer credits to the consumer if they pay with Catch for their next purchase.

Link copied to clipboard
fun CatchLogo(size: CatchLogoSize = CatchLogoSize.SMALL, colorTheme: CatchColorTheme? = null)

A view which displays Catch's logo.

Link copied to clipboard
fun ExpressCheckoutCallout(price: Int = 0, items: List<Item>? = null, userCohorts: List<String>? = null, borderStyle: BorderStyle = BorderStyle.None, colorTheme: CatchColorTheme? = null, styleOverrides: InfoWidgetStyle? = null)

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

Link copied to clipboard
fun PaymentMethod(price: Int = 0, items: List<Item>? = null, userCohorts: List<String>? = null, disabled: Boolean = false, variant: PaymentMethodVariant = PaymentMethodVariant.Standard, colorTheme: CatchColorTheme? = null, styleOverrides: InfoWidgetStyle? = null)

The PaymentMethod widget displays similar messaging and informational content as the Callout but is designed specifically to be displayed in checkout UI where a consumer may select Catch as their payment method.

Link copied to clipboard
fun PurchaseConfirmation(earned: Int, donation: Int? = null, borderStyle: BorderStyle = BorderStyle.SlightRound, colorTheme: CatchColorTheme? = null, styleOverrides: ActionWidgetStyle? = null)

The PurchaseConfirmation widget is designed to be used on the merchant's order confirmation page if Catch was used as a payment method.

Link copied to clipboard
fun PurchaseConfirmationByOrderId(orderId: String, borderStyle: BorderStyle = BorderStyle.SlightRound, colorTheme: CatchColorTheme? = null, styleOverrides: ActionWidgetStyle? = null)

The PurchaseConfirmationByOrderId widget serves the same purpose as the PurchaseConfirmation widget but is to be used for purchases made with Catch's virtual card integration.