Skip to content

Instantly share code, notes, and snippets.

View kekukeku's full-sized avatar

Kevin Kuo kekukeku

View GitHub Profile
<p>Hello <%= @user.name %> !</p>
<br />
<p> Your trading order <%= link_to @order.no, offer_order_url(@offer.token, @order.token) %> has been reported.</p>
<p> Please contact to the counterparty to clarify the reason of the report, and <% = link_to "click here", account_ticket_url (@ ticket.token)%> to communicate with our customer service, who will help you solve the trade disputes.</p>
<br />
<p> Please note that OTCBTC will never ask your password and verification code in any way.</p>
<p> Do not reply this automatically generated mail or sign back anything.</p>
<p> ----------------------------------------------- </p>
<p> Official Website: <a href="https://<%= ENV["APPLICATION_HOST"] %>">https://<%= ENV["APPLICATION_HOST"] %></a></p>
<p> E-mail Service: <a href="mailto:support@otcbtc.com">support@otcbtc.com</a></p>
<div class = "row">
<div class = "referrals-registrations">
<div class = "referrals-registrations-image">
<div class = "container">
<div class = "row">
<div class = "col-md-12">
<p class = "text-center"> </ p>
</div>
</div>
</div>
<div class="order-reminder tips-text text-warning">
The buyer has marked payment completed. Please release the coins after confirming the payment arrived. <%= order.human_currency %>!
</div>
<% if order.payee.verified_and_has_identity_info? %>
<% if order.payee?(user)%>
<% if order.payer.verified_advanced_verification_result.present? %>
<div class = "payment-tips verification-info">
<span class = "tips-text">
To ensure the asset safety of both, the buyer has to use the ATM cards approved by Advanced Verification to pay the seller.Advanced Verification detail of the counterparty : <br>
Name: <%= order.payer.passed_advanced_verification_info(:real_name) %>; Bank: <%= order.payer.passed_advanced_verification_info(:bank_name) %>; ATM Card Number: <%= order.payer.passed_advanced_verification_info(:bank_card_number).first(4) %>********<%= order.payer.passed_advanced_verification_info(:bank_card_number).last(4) %>
</span>
</div>
<% elsif order.payer.verified_and_has_identity_info? %>
<% if order.payee?(user)%>
<% if order.payer.verified_advanced_verification_result.present? %>
<div class = "payment-tips verification-info">
<span class = "tips-text">
To ensure the asset safety of both, the buyer has to use the ATM cards approved by Advanced Verification to pay the seller.Advanced Verification detail of the counterparty : <br>
Name: <% = order.payer.passed_advanced_verification_info (: real_name)%>; Bank: <% = order.payer.passed_advanced_verification_info (:bank_name) %>; ATM Card Number: <% = order.payer.passed_advanced_verification_info (: bank_card_number) .first (4) %> ******** <%= order.payer.passed_advanced_verification_info(:bank_card_number).last(4)%>
</span>
</div>
<% end %>
<% end %>
Hello <p><%= @recipient.name %>!</p>
<br />
<% if @recipient == @payer%>
<p> Since you have not responded to the trade of order <%= @order.no %> for more than 24 hours and OTCBTC has verified the transfer information for this order for buyer <%= @payee.name %>, The system has automatically released the coins to the buyer in order to complete the trade.</p>
<% else %>
<p> The system has automatically released the coins to your account because the seller <%= @payer.name %> has not responded to the trade of order <%= @order.no %> for more than 24 hours, and OTCBTC has verified your transfer information.</p>
<% end %>
<% if @order.fee_payer?(@payee) %>
<p>Hello <%= @user.name %> !</p>
<br />
<p><%= @payer.name%> has confirmed the payment arrived at <% = @time%> and released the coins for the order <% = @ order.no%>.</p>
<% if @order.fee_payer?(@payee) %>
<p> The amount for this order is <% = @order.crypto_currency_amount.to_floored (@order.currency)%> + <% = @order.fee.to_floored (@order.currency)%> (Transaction Fee) = <% = @order.paid_crypto_amount.to_floored (@order.currency)%> <% = @order.human_currency%> </p>
<% else%>
<p> The trade amount for this order is <%= @order.crypto_currency_amount.to_floored (@ order.currency)%> <% = @order.human_currency%> </p>
<% end %>
<p>Hello <%= @ payer.email %> !</p>
<br />
<p> The buyer <%= @ payee.user_name %> has confirmed the payment at <% = @time %> of the order <%= @order.no %>. </p>
The payment amount is: <% = render_floored_fiat_currency_amount (@order.fiat_currency_amount_with_random_decimal, @order.fiat_currency)%> <% = @order.human_fiat_currency%>
<% if @order.fee_payer?(@payer) %>
<p> The amount for this order is <% = @order.crypto_currency_amount.to_floored (@order.currency)%> + <% = @order.fee.to_floored (@order.currency)%> (Transaction Fee) = <% = @order.paid_crypto_amount.to_floored (@order.currency)%> <% = @order.human_currency%> </p>
<% else %>
<p> The amount for this order is <% = @order.crypto_currency_amount.to_floored (@order.currency)%> <% = @order.human_currency%>. </p>
<p>Hello <%= @user.name %> !</p>
<br />
<p> You have an order that was cancelled by the system at <% = @time %> due to expiration. The order number is <%= @ order.no%>. </ p>
<% if @send_to_seller%>
<p> Your coins will be unlocked and returned to your wallet.</p>
<% else%>
<p> If you still want to trade, please place a new order.</p>
<% end%>
<br />
<p> You can <% = link_to "click here", offer_order_url (@ offer.token, @order.token)%> to view the transaction details.</p>
<p>Hello <% = @ offer_owner.user_name%> !</p>
<br />
<p> The user <% = @ offer_taker.user_name%> has requested to trade with you for the order <% = @ order.no%> at <% = @ order.created_at.to_s%>.
<p> Number of Trade: <% = @ order.crypto_currency_amount.to_floored (@ order.currency)%> <% = @ order.human_currency%> </p>
<br />
<p> You can <% = link_to "click here", offer_order_url (@ offer.token, @ order.token)%> to view the trade details and communicate with each other.</p>
<br />
<p> Please note that OTCBTC will never ask your password and verification code in any way.</p>
<p> Do not reply this automatically generated mail or sign back anything.</p>
<p> ----------------------------------------------- </p>