Compare commits
No commits in common. "c7a5f2a8e0101fea76917d1cb296ae123e7b1faa" and "b55142d9b8f8f23163daa9a410633191cbbb47e2" have entirely different histories.
c7a5f2a8e0
...
b55142d9b8
@ -18,8 +18,7 @@ module IfThenPay
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.payments(date)
|
def self.payments(date)
|
||||||
end_date = (Time.parse(date) + 1).strftime("%Y-%m-%d %H:%M:%S")
|
URI("https://ifthenpay.com/ifmbws/ifmbws.asmx/getPaymentsJson?chavebackoffice=#{ENV['IFTHENPAY_BO_KEY']}&entidade=&subentidade=&dtHrInicio=#{date}&dtHrFim=#{date}&referencia=&valor=&sandbox=0")
|
||||||
URI("https://ifthenpay.com/ifmbws/ifmbws.asmx/getPaymentsJson?chavebackoffice=#{ENV['IFTHENPAY_BO_KEY']}&entidade=&subentidade=&dtHrInicio=#{date}&dtHrFim=#{end_date}&referencia=&valor=&sandbox=0")
|
|
||||||
.then{|u| Net::HTTP.get(u)}
|
.then{|u| Net::HTTP.get(u)}
|
||||||
.then{|b| Nokogiri::XML(b).child.child.text}
|
.then{|b| Nokogiri::XML(b).child.child.text}
|
||||||
.then{|x| JSON.parse(x)}
|
.then{|x| JSON.parse(x)}
|
||||||
|
@ -39,13 +39,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><%= notification.to_be_sent_on %></td>
|
<td><%= notification.to_be_sent_on %></td>
|
||||||
<td><code><%= notification.template %></code></td>
|
<td><code><%= notification.template %></code></td>
|
||||||
<td>
|
<td><%= link_to notification.member do %><%= notification.member.display_name %> <<%= notification.member.email %>><% end %></td>
|
||||||
<% if notification.member %>
|
|
||||||
<%= link_to notification.member do %><%= notification.member.display_name %> <<%= notification.member.email %>><% end %>
|
|
||||||
<% else %>
|
|
||||||
---
|
|
||||||
<% end %>
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
<% if notification.status == 'scheduled' %>
|
<% if notification.status == 'scheduled' %>
|
||||||
<%= form_with url: deliver_notification_path(notification) do |form| %>
|
<%= form_with url: deliver_notification_path(notification) do |form| %>
|
||||||
|
Loading…
Reference in New Issue
Block a user