Payment Method View
The PaymentMethod
widget displays similar messaging and informational content as the Callout
widget, but is designed specifically to be displayed in checkout UI where a consumer may select Catch as their payment method.
The widget may be placed in a "disabled" state when the cart contains items that cannot be purchased with Catch (e.g. gift cards). The disable state grays out the contents of the widget and provides a small tooltip that explains why Catch cannot be selected.
The PaymentMethod
widget makes use of its price
, items
, and userCohorts
properties to calculate rewards the user will earn on the current purchase.
Properties
The Catch color CatchColorTheme
. If no theme is set, the theme set globally on the Catch
object will be used, which defaults to CatchColorTheme.Light
.
Style overrides which can be used to override the widget's default appearance (ex. font size, color, weight, etc.).
A list of user cohorts that the signed in user qualifies for. Used to calculate cohort-based rewards.
The PaymentMethod
has several variants that allow you to customize what content is rendered in the widget. The PaymentMethodVariant
options are: