Sha256: 39910028b4a268c521eec95b0f904076480ad6c3de83758484c07c629d02cced

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 KB

Contents

<% content_for :data_controls do %>
  <%= link_to 'View Order', tb_commerce_admin_order_path(@transaction.order), :class => 'btn btn-default' %>
<% end %>

<h3>General</h3>

<div class="table-responsive">
  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th>Order</th>
        <th>Charge ID</th>
        <th>Amount</th>
        <th>Status</th>
        <th>Created</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><%= link_to "##{@transaction.order.invoice_number}", tb_commerce_admin_order_path(@transaction.order) %></td>
        <td><%= link_to_for_stripe_charge(@transaction) %></td>
        <td><%= number_to_currency @transaction.amount_charged %></td>
        <td><%= tb_commerce_status_label_for_transaction(@transaction.status) %></td>
        <td><%= @transaction.created_at.strftime('%-l:%M %p %m/%d/%Y') %></td>
      </tr>
    </tbody>
</table>
</div>


<% if @transaction.raw_response %>
  <h3>Payment Response</h3>
  <p>The payment gateway returned the following information.</p>
  <%= debug @transaction.response_json %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tb_commerce-0.0.4 app/views/tb_commerce/admin/transactions/show.html.erb
tb_commerce-0.0.3 app/views/tb_commerce/admin/transactions/show.html.erb
tb_commerce-0.0.2 app/views/tb_commerce/admin/transactions/show.html.erb