A payment comparison that puts the full cost before the first installment
Help shoppers compare a smaller first payment with the actual total. Two equal WCard panels show an upfront price, four installments and the exact financing cost before checkout.
WDiv(
className: '''
w-full px-4 py-12
bg-slate-900 dark:bg-slate-900
''',
child: WDiv(className: 'flex flex-col gap-4', children: [
WText('Compare the full cost', className: '''
text-2xl font-bold
text-white dark:text-white
'''),
WText('Your order: studio headphones', className: 'text-sm text-slate-400 dark:text-slate-400'),
WDiv(className: 'flex flex-row gap-3', children: [
WCard(
className: '''
flex-1 h-72 p-4 rounded-lg border
border-slate-700 dark:border-slate-700
bg-slate-800 dark:bg-slate-800
''',
child: WDiv(className: 'flex flex-col gap-3', children: [
WText('Pay in 4', className: '''
text-sm font-semibold
text-slate-300 dark:text-slate-300
'''),
WText('\$264', className: '''
text-3xl font-bold
text-slate-300 dark:text-slate-300
'''),
WText('Total after all payments', className: 'text-xs text-slate-400 dark:text-slate-400'),
WDiv(className: 'h-0.5 bg-slate-700 dark:bg-slate-700'),
WText('4 × \$66 monthly', className: 'text-sm text-slate-300 dark:text-slate-300'),
WText('\$24 financing cost', className: 'text-sm text-slate-300 dark:text-slate-300'),
]),
),
WCard(
className: '''
flex-1 h-72 p-4 rounded-lg border-2
border-emerald-400 dark:border-emerald-400
bg-slate-800 dark:bg-slate-800
''',
child: WDiv(className: 'flex flex-col gap-3', children: [
WDiv(className: 'flex flex-row items-center justify-between', children: [
WText('Full', className: '''
text-sm font-semibold
text-white dark:text-white
'''),
WBadge('Better', className: '''
px-2 py-0.5
bg-emerald-400 dark:bg-emerald-400
text-slate-950 dark:text-slate-950
'''),
]),
WText('\$240', className: '''
text-3xl font-bold
text-emerald-400 dark:text-emerald-400
'''),
WText('Total paid at checkout', className: 'text-xs text-slate-300 dark:text-slate-300'),
WDiv(className: 'h-0.5 bg-slate-700 dark:bg-slate-700'),
WText('1 × \$240 today', className: 'text-sm text-white dark:text-white'),
WText('\$0 financing cost', className: 'text-sm text-white dark:text-white'),
]),
),
]),
WText('Paying in full saves \$24 on this order.', className: 'text-sm text-slate-300 dark:text-slate-300'),
WButton(
onTap: () {},
className: '''
w-full py-3 rounded-lg
bg-emerald-400 dark:bg-emerald-400
hover:bg-emerald-300 dark:hover:bg-emerald-300
focus:ring-2
focus:ring-emerald-200 dark:focus:ring-emerald-200
disabled:opacity-50
''',
child: WText('Pay \$240 in full', className: '''
text-center font-semibold
text-slate-950 dark:text-slate-950
'''),
),
]),
)
More like this
-
An ownership pass that sends the product history with the coat
Give a secondhand sale a clear handoff: a claim code, named recipient and repair history that travels with the item. A paper pass with a perforated stub and
overflow-hiddenedges keeps ownership transfer ready to share. -
A payee warning that makes pausing a payment the easy choice
Give people a useful exit when a recipient name does not match. A lime warning poster puts the mismatch in large type and offers one clear save-for-later action, built with a keyboard-accessible
WButton. -
A charging receipt that separates the final cost from the card hold
Make public charging costs easy to reconcile: energy, session fees and idle time add up on a paper receipt, with the released card hold explained below. Wind
WTextrows keep every amount aligned.