idpass/checkersdk

Identitypass KYC 验证小部件

v1.0.0 2023-01-19 08:49 UTC

This package is auto-updated.

Last update: 2024-09-19 12:18:21 UTC


README

安装

$ composer require idpass/checkersdk

将 Identitypass 服务提供者类添加到 config/app.php 中的 providers 部分

Idpass\Checkersdk\Providers\CheckersdkProvider::class,

发布供应商包

php artisan vendor:publish

配置您的凭证,从已发布的 config/IdentitypassKYC.php

    // your merchant key
    "merchant_key" => "Your-Merchant-Public-Key",
//this can be true if you are testing SDK or false to use the live environment
"is_test" => false, 

//preferred button color
"button_color" => "",

//preferred button text
"button_text" => "Verify Identity", 

// DO NOT CHANGE FROM HERE
"js_link" => "https://js.myidentitypay.com/v1/inline/kyc.js"

用法 在您页面的 body 标签后添加 @identitypass_script('name~name~ref~email')

    <body> 
@identitypass_script('name~name~ref~email')

将 Identitypass KYC 按钮添加到页面

    @identitypass_kyc