[% dw.ml('widget.shopcart.paymentmethod') %]
[%# if the cart is zero cost, then we can just let them check out %]
[% IF cart.total_cash == 0.00 %]
[% form.submit(
name = 'checkout_free',
value = dw.ml('widget.shopcart.paymentmethod.free')
) %]
[% ELSE %]
[%# google has very specific rules about where the buttons go and how to display them
# ... so we have to abide by that %]
[% IF gco_avail %]
or use
[% END %]
[%# Stripe credit card processing %]
[% form.submit(
name = 'checkout_stripe',
value = dw.ml('widget.shopcart.paymentmethod.creditcard'),
disabled = !cc_avail
) %]
[% IF cmo_avail %]
[% form.submit(
name = 'checkout_cmo',
value = dw.ml('widget.shopcart.paymentmethod.checkmoneyorder'),
disabled = disable_cmo
) %]
[% END %]
[% IF !cc_avail %]
[% dw.ml('widget.shopcart.paymentmethod.creditcard.whydisabled') %]
[% END %]
[% IF cmo_avail && disable_cmo %]
[% dw.ml(
'widget.shopcart.paymentmethod.checkmoneyorder.whydisabled',
{ minimum => cmo_min }
) %]
[% END %]
[% END %]
[% END %]
[% UNLESS confirm || admin %]