Mobile verification for signer SMS issue
Monday, January 21, 2019 at 02:24amHello,
I have added signer SMS verification before sign of document. It show SMS sent. but user don't receive any SMS. even if user request SMS while sign, it say SMS sent successfully, but don't get any SMS. Here is the code. There is line of array for SMS. Is it like any Mobile format validation to follow to save mobile number? or below code need any addition.? please help.
public function buildPackage($application_id) { $application = Application::find($application_id); $title = $application->entity_name.' - '.date('d-m-Y'); $roles = array(); $i = 1; //directors signers (ID: Signer1 & Signer2) if(!empty($application->directors)){ foreach (unserialize($application->directors) as $key => $value) { if(!empty($value['email'])){ if(isset($value['mobile'])){ $auth = array( 'challenges' => array(array('question' => $value['mobile'])), 'scheme' => 'SMS' ); }else{ $auth = array( 'challenges' => array(), 'scheme' => 'NONE' ); } $roles[] = array( 'id' => 'Signer'.$i, 'type' => 'SIGNER', 'signers' => array( array( 'auth' => $auth, 'email' => trim($value['email']), 'firstName' => trim($value['f_name']), 'lastName' => trim($value['l_name']), 'id' => 'Signer'.$i, ) ) , ); $i++; } } } //senders notification alert users if(!empty(Auth::user()->company->doc_alert_mail)){ $alert_emails = explode(',', Auth::user()->company->doc_alert_mail); foreach ($alert_emails as $key => $value) { //if there is supplier email skip as already added if(Auth::user()->email == trim($value)){ continue; } //get email username $email_explode = explode('@', $value); $roles[] = array( 'id' => 'Sender'.$key, 'type' => 'SIGNER', 'signers' => array( array( 'email' => $value, 'firstName' => $email_explode[0], 'lastName' => '.', 'id' => 'Sender'.$key, ) ) , ); } } $build = array( 'autocomplete' => true, 'type' => 'PACKAGE', 'status' => 'DRAFT', 'roles' => $roles, 'name' => $title, ); $packageJSON = json_encode($build); $packageId = json_decode($this->sendRequest($this->packageAppend, $packageJSON, NULL, NULL), true); return $packageId; }
Reply to: Mobile verification for signer SMS issue
Monday, January 21, 2019 at 02:57amReply to: Mobile verification for signer SMS issue
Wednesday, January 23, 2019 at 02:00amReply to: Mobile verification for signer SMS issue
Wednesday, January 23, 2019 at 04:30am