I have tried to grab bitpay invoice id from callback but couldn't go through can you guys help me with how to correctly grab bitpay invoice id to insert to mysql database with php
Try using the following to obtain the invoice ID from the POSTED callback:
$invoiceId = (isset($_POST['id']) ? $_POST['id'] : null;
As per the data returned from the invoice API as per their documentation