Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use proper _total methods of Order model, include tax_total as tax_cart

  • Loading branch information...
commit 5b07492d2f52cd83ae1fc17cc9aec1b46dd53f85 1 parent 7cb9aee
@tomash tomash authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  app/views/checkout/_paypal_checkout.html.erb
View
3  app/views/checkout/_paypal_checkout.html.erb
@@ -19,7 +19,8 @@
<!-- input id="amount" name="amount" type="hidden" value="58.97" /-->
<input id="currency_code" name="currency_code" type="hidden" value="<%= Spree::Paypal::Config[:currency_code] %>" />
- <input id="handling_cart" name="handling_cart" type="hidden" value="<%= @order.shipment_cost %>" />
+ <input id="handling_cart" name="handling_cart" type="hidden" value="<%= @order.ship_total %>" />
+ <input id="tax_cart" name="tax_cart" type="hidden" value="<%= @order.tax_total %>" />
<!-- <input name="no_shipping" type="hidden" value="1" /> -->
Please sign in to comment.
Something went wrong with that request. Please try again.