trillzglobal / securemyid
用于连接应用程序与SecureMyID进行身份验证的包
dev-development
2022-12-20 07:48 UTC
Requires
- guzzlehttp/guzzle: >=7.4.3
This package is not auto-updated.
Last update: 2024-09-29 01:18:15 UTC
README
🏁 星标
此包自动协助打包并发送API到SecureMyID,用于;
- 身份验证请求
- 报告身份
- 解密Webhook以获取身份详情和账户挂起详情
🚀 使用方法
use TrillzGlobal\SecureMyID\SecureMyID; # Initiate new Class with API Key and Secret Key generated on your dashboard on SecureMyID $verify = new SecureMyID($api_key, $secret_key); # Sending Request to Verify ID. Response will either be successful or failed. Identity of customer will be sent as response to webhook provided on secureMyID dashboard. # Sample Payload $payload = '{"phone_number":"090000000001"}'; $result = $verify->verifyID($data); # Reporting a suspected Fraudulent User comes handy with this endpoint as you can use this to protect against same user from future fraud. # Sample Payload $payload = '{"phone_number":"090000000001", "risk_level":3, "details":"Hacked into our system"}'; $result = $verify->reportIdentity($data); #Registered webhook receives identity verification response and also Panic Notification if user want to suspend action on their account for some times. $result = $verify->decryptWebhook($data);
📝 许可证
本项目受MIT许可证许可。更多信息请参阅LICENSE文件。
由Michael Ojo用❤️制作