spree_pag_seguro 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@
10
10
  <th><%= t("Transaction Id") %></th>
11
11
  <th><%= t("Received At") %></th>
12
12
  </tr>
13
- <% @order.pag_seguro_payment.txns.each do |t| %>
13
+ <% @order.payment.pag_seguro_payment.txns.each do |t| %>
14
14
  <tr>
15
15
  <td><%=number_to_currency t.amount %></td>
16
16
  <td><%=number_to_currency t.fee %></td>
@@ -4,20 +4,19 @@
4
4
  <table class="index">
5
5
  <tr>
6
6
  <th>Código de Transação no Pagseguro:</th>
7
- <th>Data de criação do pagamento:</th>
8
- <th>URL para efetuar o pagamento</th>
7
+ <th>Data de criação do pagamento:</th>
8
+ <th>URL para efetuar o pagamento</th>
9
9
  </tr>
10
10
  <tr>
11
11
  <td>
12
- <% if payment.order.payment_notifications.present? %>
12
+ <% if payment.order.payment_notifications.present? %>
13
13
  <%= payment.order.payment_notifications.last.transaction_id %>
14
- <% else %>
15
- Sem Código
16
- <% end %>
14
+ <% else %>
15
+ Sem Código
16
+ <% end %>
17
17
  </td>
18
- <td><%= l payment.source.date %></td>
19
- <td><%= link_to PagSeguro::Payment.checkout_payment_url(payment.source.code) %></td>
18
+ <td><%= l payment.pag_seguro_payment.date %></td>
19
+ <td><%= link_to PagSeguro::Payment.checkout_payment_url(payment.pag_seguro_payment.code) %></td>
20
20
  </tr>
21
21
  </table>
22
22
  </fieldset>
23
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_pag_seguro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: