feat: PayPal增加显示留言,备注

feature/pay
lyt 6 years ago
parent 6d38dd790e
commit 0166e701fc

@ -12,8 +12,6 @@
<dt>客人姓名,邮箱</dt> <dt>客人姓名,邮箱</dt>
<dd><?php echo $note->pn_payer ?> , <?php echo $note->pn_payer_email ?></dd> <dd><?php echo $note->pn_payer ?> , <?php echo $note->pn_payer_email ?></dd>
</dl> </dl>
<dl class="dl-horizontal"> <dl class="dl-horizontal">
<dt>产品名</dt> <dt>产品名</dt>
<dd><?php echo $note->pn_item_name ?></dd> <dd><?php echo $note->pn_item_name ?></dd>
@ -26,6 +24,19 @@
<dt>付款时间</dt> <dt>付款时间</dt>
<dd><?php echo date('Y-m-d H:i:s', strtotime($note->pn_payment_date) + 3600 * 8); ?></dd> <dd><?php echo date('Y-m-d H:i:s', strtotime($note->pn_payment_date) + 3600 * 8); ?></dd>
</dl> </dl>
<dl class="dl-horizontal">
<dt>备注&nbsp;/&nbsp;留言</dt>
<dd>
<?php
$content = json_decode($note->pn_memo);
if (isset($content->memo)) {
echo $content->memo . "<br>";
}
if (isset($content->transaction_subject)) {
echo $content->transaction_subject;
} ?>
</dd>
</dl>
<dl class="dl-horizontal"> <dl class="dl-horizontal">
@ -62,7 +73,9 @@
</dl> </dl>
<dl class="dl-horizontal"> <dl class="dl-horizontal">
<dt><a href="javascript:void(0);" onclick="$('#note_original_data').toggle()">原始数据</a></dt> <dt><a href="javascript:void(0);" onclick="$('#note_original_data').toggle()">原始数据</a></dt>
<dd> <span style="display: none;" id="note_original_data"><?php echo str_replace('","', '"<br/>"', $note->pn_memo); ?></span></dd> <dd> <span style="display: none;" id="note_original_data">
<?php echo str_replace('","', '"<br/>"', $note->pn_memo); ?>
</span></dd>
</dl> </dl>
<input type="hidden" name="pn_txn_id" id="pn_txn_id" value="<?php echo $note->pn_txn_id ?>" /> <input type="hidden" name="pn_txn_id" id="pn_txn_id" value="<?php echo $note->pn_txn_id ?>" />

Loading…
Cancel
Save