| | 160 | # FIXME: this should all be done on thanks, and the cart not cleared here, but this was more foolproof at the moment... |
|---|
| | 161 | # we should also show the cc number in XXXX XXXX XXXX 1234 format here |
|---|
| | 162 | redirect_to_thanks( |
|---|
| | 163 | "Card processed successfully: #{@transaction.authorization}<p />" + " <b>Order details</b>:<br /> #{@order.first_name} #{@order.last_name}<p />" + " #{@order.address}<br />" + " #{@order.address_2}<br />" + " #{@order.city}, " + " #{@order.state}<br />" + " #{@order.zip}, " + "#{@order.country}<br />" + " #{@order.phone}<br />" + " #{@order.email}<p />" + " Comments: #{@order.comments}<p />" + " Sub-total: $#{@cart.total_price}<br />" + " Sales Tax: $#{@order.sales_tax}<br />" + " Shipping: $#{@order.shipping}<br />" + "------------------<br />" + " Total: $" + (@cart.total_price + @order.sales_tax + @order.shipping).to_s) |
|---|
| | 164 | |
|---|