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