<% writable = can?('invoices', 'write') %> <%== erb :'admin/_nav', layout: false %>

Payout addresses

← invoices · crypto payment options for new invoices

<% if @flash %>
<%= @flash %>
<% end %> <% CryptoAsset::KNOWN_SCHEMES.each do |sch| %><% end %> <% CryptoAsset::DEFAULTS.each do |code, a| %><% end %>
> <% rows = @rows.map { |r| [r.id.to_s, r] } %> <% rows << ['new', nil] if writable %> <% rows.each do |key, r| %>
<%= r ? "#{r.name} · #{r.coin}" : 'Add a payout address' %> <% if r %> <% else %> known tickers fill the rest automatically <% end %>
/>
/>
<% if r %>

QR → <%= CryptoQr.uri(scheme: r.scheme, amount_param: r.amount_param, address: r.address, amount: BigDecimal('0.5')) %> · updated <%= r.updated_at.strftime('%Y-%m-%d') %> by <%= r.updated_by %>

<% end %>
<% end %>
  • QR scheme is the full coin name wallets recognise, without the colon: litecoin, not ltc. Leave it empty for tokens (USDT, USDC…): the QR then holds the bare address and the PDF tells the payer to check the network.
  • Amount in QR: amount for Bitcoin-style coins (BTC, LTC, SOL…), tx_amount for Monero; needs a scheme.
  • CoinGecko id enables "Fetch live" on the invoice form; it's the slug in the coin's coingecko.com URL.
  • Invoices copy these fields when issued, so editing, retiring or removing an entry never changes existing invoices.
<% if writable %><% end %>
<% if can?('invoices', 'delete') && @rows.any? %>

Remove

<% @rows.each do |r| %>
<% end %>
<% end %>