这是我的问题
<script type="text/javascript"><!--
$('#button-confirm').bind('click', function() {
$.ajax({
type: 'GET',
url: 'index.php?route=payment/bitcoinpayflow/confirm',
success: function(url) {
location = '<?php echo $continue;?>';
}
});
});
//--></script>
网址返回此:
https://bitcoinpayflow.com/ordersArray // note the lack of space between orders and array. Is this a problem? If it is, I can get it to display in JSON notation with some fiddling.
(
[order] => Array
(
[bitcoin_address] => 1DJ9qiga2fe94FZPQZja75ywkdgNbTvGsW
)
)
现在,我想做的是将条目 bitcoin_address 附加到 $continue '<?php echo $continue;?>'
。代表:/index.php?route=checkout/success
. 所以它会读/index.php?route=checkout/success&btc=1DJ9qiga2fe94FZPQZja75ywkdgNbTvGsW
。看起来应该很简单,但我不知道该怎么做。
下一页有一个 javascript 函数,它从 url 解析比特币地址并将其显示在页面上。这一切都很好,我只是无法让比特币地址实际显示!