PHP code example of asialong / jinritemai-sdk

1. Go to this page and download the library: Download asialong/jinritemai-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/ */

    

asialong / jinritemai-sdk example snippets




$dispatch = new \Asialong\JinritemaiSdk\Doudian([
    'client_id' => 'your-app-key',
    'client_secret' => 'your-secret',
    'service_id' => 12345,
    'debug' => true,
    'member_type' => 'MERCHANT',
    'redirect_uri' => 'http://www.xxx.com/callback',
    'log' => [
        'name' => 'doudian',
        'file' => __DIR__ . '/doudian.log',
        'level' => 'debug',
        'permission' => 0777,
    ],
]);