example/sinatra/response.erb in veritrans-2.3.0 vs example/sinatra/response.erb in veritrans-2.4.0
- old
+ new
@@ -1,40 +2 @@
-<link rel="stylesheet" href="/style.css">
-
-<header>
- <h3>
- <a href="/">Midtrans sinatra app</a>
- </h3>
- <a href="https://github.com/veritrans/veritrans-ruby" class="github">Source Code</a>
-</header>
-
-<% if @result.redirect_url %>
- <section>
- <p>Here's redirect url <a href='<%= @vtweb_url %>'><%= @vtweb_url %></a> </p>
- </section>
-<% end %>
-
-<section>
- <strong>
- Veritrans response:
- <% if @result.success? %>
- <span style="color: green">success</span>
- <% end %>
- </strong>
-
- <code>
- <pre>
-<%= JSON.pretty_generate(JSON.parse(@result.response.body)) %>
- </pre>
- </code>
-
- <% if @cahrge_params %>
- <strong>Request Body</strong>
- <code>
- <pre>
-<%= JSON.pretty_generate(@cahrge_params) %>
- </pre>
- </code>
- <% end %>
-
- <a href="/">Go back</a>
-</section>
\ No newline at end of file
+<%= @result.response.body %>