PHP code example of sausin / signere-sdk
1. Go to this page and download the library: Download sausin/signere-sdk 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/ */
sausin / signere-sdk example snippets
Sausin\Signere\SignereServiceProvider::class
'mode' => null,
'id' => env('SIGNERE_API_ID', 'id'),
'primary_key' => env('SIGNERE_KEY_PRIMARY', 'primary_key'),
'secondary_key' => env('SIGNERE_KEY_SECONDARY', 'secondary_key'),
'ping_token' => env('PINGTOKEN', 'ping_token'),
'cancel_url' => 'https://abc.com/auth/abort?requestid=[1]&externalid=[2]',
'error_url' => 'https://abc.com/auth/error?status=[0]',
'success_url' => 'https://abc.com/auth/success?requestid=[1]&externalid=[2]',
'sign_cancel_url' => 'https://abc.com/auth/abort?requestid=[1]&externalid=[2]',
'sign_error_url' => 'https://abc.com/auth/error?status=[0]',
'sign_success_url' => 'https://abc.com/auth/success?requestid=[1]&externalid=[2]',
'identity_provider' => 'NO_BANKID_WEB',
Signere::auth(function ($request) {
// return true / false;
});
>>> $r = Facades\Sausin\Signere\Events::getEncryptionKey()
=> GuzzleHttp\Psr7\Response {#1234}
>>> $r->getBody()->getContents()
=> ""fcbYIytltKmGrmd3lre71wpdBDn4D56dNjp8Bn1TROl=""
>>> Facades\Sausin\Signere\Events::getBaseUrl();
sh
php artisan vendor:publish --provider="Sausin\Signere\SignereServiceProvider"