【发布时间】:2012-04-25 19:03:05
【问题描述】:
这是我的问题
<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解析比特币地址并显示在页面上。这一切都很好,我只是无法让比特币地址实际显示!
【问题讨论】:
-
如果您对如何更好地格式化此问题有任何提示,请告诉我。我不习惯 stackoverflow 的礼仪。
标签: php ajax get opencart bitcoin