I have setup 3 test merchants in the sandbox to test my web app. With all except the primary test account, the "owner" pin is not sent to my web app. I use the PIN as the password for the login process into my web app.
The employees are coming across from the API as "expanded" in a Merchant API Get, so I tried detecting for the absence of the PIN and tried the following PHP
if (!isset($employee->pin)) {
$HttpSocket = new HttpSocket();
$employee = $HttpSocket->request([
'uri' => Configure::read('clover_api').'merchants/'.$this->params['url'].'merchant_id'].'/employees/'.$employee->id.'?access_token='.$access_token,
]);
$employee = json_decode($employee->body);
}
The PIN is also not present in the object $employee. What is the reason for this?
Thanks Robin