I am using postman to check my JSON API response from web applicaton to Mobile devices.
Here is my php code.
$checkout = new JsonSynchronization();
$checkout -> customer_id = isset($_POST['customer']) ? $_POST['customer'] : 0;
$checkout -> store_id = isset($_POST['store']) ? $_POST['store'] : 0;
$data ['customer_id'] = $checkout -> customer_id;
$data ['store_id'] = $checkout -> store_id;
echo json_encode($data);
I cant get the response as expected. What is the error?... can you please assist me ?