これが私の問題です
<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>
URLはこれを返します:
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
。シンプルなはずなのにどうしたらいいのかわからない。
次のページには、URLからビットコインアドレスを解析してページに表示するjavascript関数があります。これはすべて正常に機能します。実際に表示するビットコインアドレスを取得できません。