Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<% 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">
为确保资金安全,请买家使用已完成进阶验证的银行卡向卖家转账。对方进阶验证信息:<br>
姓名:<%= order.payer.passed_advanced_verification_info(:real_name) %>;开户行:<%= order.payer.passed_advanced_verification_info(:bank_name) %>;银行卡号:<%= 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? %>
<div class="payment-tips verification-info">
<span class="tips-text">
若选择银行卡转账方式,请您使用户主姓名为 <%= order.payee.identity_info.real_name %> 的银行卡向卖家转账,以免发生交易纠纷。<br>
您的实名验证姓名(<%= render_human_id_type(order.payee.identity_info) %>):<%= order.payee.identity_info.real_name %> <%= link_to("姓名有误?", account_user_path, target: "_blank") %><br>
卖家实名验证姓名(<%= render_human_id_type(order.payer.identity_info) %>):<%= order.payer.identity_info.real_name %>
</span>
</div>
<% end %>
<% end %>
<% if order.payer?(user) %>
<% if order.payee.verified_advanced_verification_result.present? %>
<div class="payment-tips verification-info">
<span class="tips-text">
为确保资金安全,请卖家确认买家使用已完成进阶认证的银行卡进行支付。对方进阶验证信息:<br>
姓名:<%= order.payee.passed_advanced_verification_info(:real_name) %>;开户行:<%= order.payee.passed_advanced_verification_info(:bank_name) %>;银行卡号:<%= order.payee.passed_advanced_verification_info(:bank_card_number).first(4) %>********<%= order.payee.passed_advanced_verification_info(:bank_card_number).last(4) %>
</span>
</div>
<% elsif order.payee.verified_and_has_identity_info? %>
<div class="payment-tips verification-info">
<span class="tips-text">
为确保资金安全,若买家使用银行卡向您转账,请务必在收款后查看银行收入明细,核对打款人姓名,拒绝接收与对方实名验证不一致的第三方打款。<br>
对方实名验证姓名(<%= render_human_id_type(order.payee.identity_info) %>):<%= order.payee.identity_info.real_name %><br>
<% if order.payer.verified_and_has_identity_info? %>
您的实名认证姓名(<%= render_human_id_type(order.payer.identity_info) %>):<%= order.payer.identity_info.real_name %> <%= link_to("姓名有误?", account_user_path, target: "_blank") %>
<% end %>
</span>
</div>
<% end %>
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.