Sha256: 17787dc51271ad574579c9e3c25de51dc8622989c9032bda20bcf79043e8c94c

Contents?: true

Size: 1.03 KB

Versions: 59

Compression:

Stored size: 1.03 KB

Contents

<% if cart.cart_pending_balance > 0 %>
	<% @auth_shopping_payment = Auth.configuration.payment_class.constantize.new 

		@auth_shopping_payment.cart_id = cart.id.to_s

		@auth_shopping_payment.amount = cart.cart_pending_balance
	%>


	<% ["cash","card","cheque","gateway"].each do |p_type| %>
		<div>
		<%= link_to "Pay By #{p_type.capitalize}", new_payment_path(payment: {payment_type: p_type, cart_id: @auth_shopping_payment.cart_id, amount: @auth_shopping_payment.amount}),{:class => "button"} %>
		</div>
	<% end %>
	
	
	<% if !cart.discount_id.blank? %>
		<div>
		<%= link_to "Click here to use Code #{cart.discount_id} and get #{cart.discount.discount_amount} off", new_payment_path(payment: {payment_type: "cash", cart_id: @auth_shopping_payment.cart_id, amount: 0, discount_id: cart.discount_id}),{:class => "button"} %>
		</div>
	<% end %>
	

<% elsif cart.cart_pending_balance < 0 %>
		
		<%= link_to "Create A Refund Request", new_payment_path(payment: {refund: true, amount: cart.cart_pending_balance, cart_id: cart.id.to_s}) %>
<% end %>

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.5.9 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.5.8 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.5.7 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.5.6 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.5.5 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.5.4 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.5.3 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.5.2 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.5.1 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.5.0 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.4.9 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.4.8 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.4.7 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.4.6 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.4.5 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.4.4 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.4.3 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.4.2 app/views/auth/shopping/carts/_payment_links.html.erb
wordjelly-auth-1.4.0 app/views/auth/shopping/carts/_payment_links.html.erb