PurchaseConfirmationView

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

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

The widget includes information about how much credit the consumer just earned through their purchase and contains a link which directs the consumer to their account page on Catch's website.

For virtual card integrations, use PurchaseConfirmationByOrderIdView.

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.SlightRound style.

Link copied to clipboard

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

Link copied to clipboard

The amount of cents that the consumer is donating. Not used if the merchant doesn't have donations enabled.

Link copied to clipboard
var earned: Int

The amount in cents that that the consumer earned in credit based on their purchase.

Link copied to clipboard

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