Created
November 17, 2011 03:51
-
-
Save sivabudh/1372331 to your computer and use it in GitHub Desktop.
review.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%h3 Example of rendering Order Information | |
%h4 Your Total | |
%p= "Subtotal: #{number_to_currency @order_info[:subtotal]}" | |
%p= "Shipping: #{number_to_currency @order_info[:shipping]}" | |
%p= "Total: #{number_to_currency @order_info[:total]}" | |
%h4 Shipping Address | |
%table | |
%tr | |
%td | |
==Name | |
%td | |
= @order_info[:shipping_address]['name'] | |
%tr | |
%td | |
==Company | |
%td | |
= @order_info[:shipping_address]['company'] | |
%tr | |
%td | |
== Address 1 | |
%td | |
= @order_info[:shipping_address]['address1'] | |
%tr | |
%td | |
==Address 2 | |
%td | |
= @order_info[:shipping_address]['address2'] | |
%tr | |
%td | |
== City | |
%td | |
= @order_info[:shipping_address]['city'] | |
%tr | |
%td | |
== State | |
%td | |
= @order_info[:shipping_address]['state'] | |
%tr | |
%td | |
== Country | |
%td | |
= @order_info[:shipping_address]['country'] | |
%tr | |
%td | |
== Zipcode | |
%td | |
= @order_info[:shipping_address]['zip'] | |
%h4 Your Email: | |
= @order_info[:email] | |
%h4 Your Paypal account holder name: | |
= @order_info[:name] | |
= link_to 'Complete Purchase', paypal_express_purchase_path(:token => @order_info[:gateway_details][:token], :payer_id => @order_info[:gateway_details][:payer_id]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment