total.slim
1- total = retail_rate(rates)
2- cost = body[:items].map { |item| item[:quantity] * item[:value] }.sum
3.half.shipping
4 span Shipping
5 span
6 = rates.first["postage_type"]
7 '
8 strong= "$#{'%.2f' % total}"
9 '
10 = rates.first["delivery_days"]
11 ' days
12
13.half
14 span Total
15 strong= "$#{'%.2f' % (cost + total)}"
16
17input type="hidden" name="amount" value=(cost + total)