Account


Earned badges

Achievement: Latest Unlocked

Topic Started

This user has not created any forum posts.

Replies Created

Reply to: attempting to use Simple PHP Web Application

0 votes
SECOND STEP =>UPLOAD DOCUMENT public function buildDocument($packageId, $firstName, $lastName, $address, $city, $state, $zip, $country, $phoneNumber, $emailAddress, $company, $policyNumber) { $build = array( 'fields' => array( array( 'value' => $firstName, 'name' => 'first_name', ) , array( 'value' => $lastName, 'name' => 'last_name', ) , array( 'value' => $address, 'name' => 'address', ) , array( 'value' => $city, 'name' => 'city', ) , array( 'value' => $state, 'name' => 'state', ) , array( 'value' => $zip, 'name' => 'zip', ) , array( 'value' => $country, 'name' => 'country', ) , array( 'value' => $phoneNumber, 'name' => 'phone_number', ) , array( 'value' => $emailAddress, 'name' => 'email', ) , array( 'value' => $company, 'name' => 'company', ) , array( 'value' => $policyNumber, 'name' => 'policy_number', ) , ) , 'extract' => true, 'name' => 'Test Document', 'id' => 'sample-contract' ); $documentJSON = json_encode($build); $postdata = "--" . MULTIPART_BOUNDARY . "\r\n"; $postdata .= "Content-Disposition: form-data; name=\"file\"; filename=\"sample_contract1.pdf\"\r\n"; $postdata .= "Content-Type: application/pdf" . "\r\n\r\n"; $postdata .= Storage::get("documents\sample_contract1.pdf"); $postdata .= "\r\n\r\n"; $postdata .= "--" . MULTIPART_BOUNDARY . "\r\n"; $postdata .= "Content-Disposition: form-data; name=\"payload\"\r\n\r\n"; $postdata .= $documentJSON; $postdata .= "\r\n\r\n"; $postdata .= "--" . MULTIPART_BOUNDARY . "--\r\n"; $status = $this->sendRequest($this->packageAppend . $packageId['id'] . '/documents', $documentJSON, $postdata, 'multipart/form-data; boundary=' . MULTIPART_BOUNDARY); return $status; } for this I use previous day pdf document which you send to me and I get follwoing result "{"status":"","description":"","id":"sample-contract","approvals":[],"pages":[{"id":"","height":1030.0,"left":0.0,"width":796.0,"top":0.0,"index":0,"version":0},{"id":"","height":1030.0,"left":0.0,"width":796.0,"top":0.0,"index":1,"version":0}],"extract":true,"external":null,"signedHash":null,"extractionTypes":[],"tagged":false,"signerVerificationToken":null,"data":{"ese_document_texttag_extract_needed":"false"},"index":1,"fields":[],"name":"Test Document","size":200501} â—€" and in my account I see the uploaded document

Reply to: attempting to use Simple PHP Web Application

0 votes
Third process => Send Package public function buildSend($packageId) { $build = array( 'status' => 'SENT' ); $sendJSON = json_encode($build); $this->sendRequest($this->packageAppend . $packageId['id'], $sendJSON, NULL, 'application/json'); return NULL; } Endpoint= https://sandbox.e-signlive.ca/api/packages/LR_P239G0Xw8hLXXEk8OOgnaVNM=

Reply to: attempting to use Simple PHP Web Application

0 votes
fourth process =>Sender signs consent and contract documents In this process I want to remove the default document public function buildSign($packageId) { $build = array( 'documents' => array( array( 'id' => 'default-consent', 'name' => 'Electronic Disclosures and Signatures Consent' ) , array( 'id' => 'sample-contract', 'name' => 'Test Document' ) ) ); $signJSON = json_encode($build); $signatureAppend = $this->packageAppend . $packageId['id'] . '/documents/signed_documents'; $this->sendRequest($signatureAppend, $signJSON, NULL, 'application/json'); return NULL; }

Reply to: attempting to use Simple PHP Web Application

0 votes
Fifth process => Get a session token and in this process i get 'NULL" value public function buildToken($packageId) { $build = array( 'packageId' => $packageId['id'], 'signerId' => 'signer1' ); $tokenJSON = json_encode($build); $token = json_decode($this->sendRequest($this->tokenAppend, $tokenJSON, NULL, 'application/json'), true); return $token; } please help me to overcome this problem

Reply to: attempting to use Simple PHP Web Application

0 votes
Hi all, when using postman then text tag is working. But in my code it is not working showing this error {"code":500,"messageKey":"error.internal.default","message":"Unexpected error. We apologize for any inconvenience this may have caused you, please try again. If the problem persists, please contact our support team.","name":"Unhandled Server Error"}

Subscriptions

This user is not subscribed to any release notes.

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.