PHP code example of ahmadrivaldi-arv / mekarisign

1. Go to this page and download the library: Download ahmadrivaldi-arv/mekarisign library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ahmadrivaldi-arv / mekarisign example snippets


return [

    /**
     * API endpoint mekari sign
     */
    "base_url" => env("MEKARISIGN_BASE_URL", "https://sandbox-api.mekari.com/v2/esign/v1"),

    /**
     * API client id from [developers,sandbox].mekarisign.com
     */
    "client_id" => env("MEKARISIGN_CLIENT_ID"),

    /**
     * API client secret from [developers,sandbox].mekarisign.com
     */
    "client_secret" => env("MEKARISIGN_CLIENT_SECRET"),

    "template_id" => env("MEKARISIGN_TEMPLATE_ID"),
];

$psreAutoSign = new \Ahmdrv\MekariSign\MekariSign;
$payload = []; // see mekari documentation

$pasreAutoSign->requestPsreSign($payload);
bash
php artisan vendor:publish --tag="mekarisign-config"