spec/dummy/app/views/orders/show.html.erb in opay-1.2.8 vs spec/dummy/app/views/orders/show.html.erb in opay-1.3.0
- old
+ new
@@ -16,16 +16,21 @@
</p>
<%= opay_form_for @order, provider: :payu do |f| %>
- <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment', client_ip: '127.0.0.1' %>
+ <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: @order.name, client_ip: '127.0.0.1' %>
<%= f.submit :pay_with_payu %>
<% end -%>
<%= opay_form_for @order, provider: :paypal do |f| %>
- <%= f.paypal_payment_info desc: 'Test payment', client_ip: '127.0.0.1' %>
+ <%= f.paypal_payment_info desc: @order.name, client_ip: '127.0.0.1' %>
<%= f.paypal_submit_tag %>
+<% end -%>
+
+<%= opay_form_for @order, provider: :transferuj do |f| %>
+ <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: @order.name %>
+ <%= f.submit :pay_with_transferuj %>
<% end -%>
<%= link_to 'Edit', edit_order_path(@order) %> |
<%= link_to 'Back', orders_path %>