我正在尝试使区块链接收支付系统,但一切都成功了,除了区块链一直向我的回调文件发送回调请求,尽管我回显了“ ok ”来停止该请求
这是我的回调文件
if ($order->btc_amo==$value_in_btc && $secret=="ABIR" && $confirmations >= 1){
$savedata['confirmation'] = $trx_hash;
$savedata['gateway_response'] = json_encode($request->all());
$savedata['status'] = 'paid';
//Update product sales
$this->salesupdate($order->product_id);
//Save order
$this->neworder($order->user_id,$order->product_id,$order->price,$order->hash,$order->id);
//Save user transaction
$this->newusertransaction($order->user_id,$order->price);
//Credit seller
$this->creditseller($order->product_id);
//add balance
$this->addbalancetouser($order->user_id,$order->price);
$order->update($savedata);
echo "*ok*";
}
注意:除此问题外,所有事情都可以成功完成
使用PHP 7.2和laravel 5.5