thepeer / sdk
Thepeer 官方 Laravel SDK
v0.0.6
2022-03-20 21:33 UTC
Requires
- ext-json: *
- guzzlehttp/guzzle: ~6|~7
- illuminate/support: ^5.0 || ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- illuminate/contracts: ^5.8.15|^6.0
- illuminate/database: ^5.8.15|^6.0
- illuminate/filesystem: ^5.8.15|^6.0
- mockery/mockery: ^1.0
- orchestra/testbench: 3.8.*|4.*
- phpunit/php-code-coverage: ^7.0@dev
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-09-08 10:07:43 UTC
README
安装
composer require thepeer/sdk
使用方法
启动
<?php use Thepeer\Sdk\Thepeer; $thepeer = new Thepeer("your-secret-key"); $thepeer->chargeLink("lost-in-the-world", 5000, "Benz");
可用方法
-
validateSiganture
accepts
:- request (对象)
返回值
: 布尔型
-
indexUser
accepts
:- name (字符串)
- email (字符串)
- identifier (字符串)
返回值
: 对象
-
updateUser
accepts
:- reference (字符串)
- identifier (字符串)
返回值
: 对象
-
deleteUser
accepts
:- reference (字符串)
返回值
: 布尔型
-
getLink
accepts
:- link_id (字符串)
返回值
: 对象
-
chargeLink
accepts
:- link_id (字符串)
- amount (整数)
返回值
: 对象
-
authorizeCharge
accepts
:- reference (字符串)
- event (字符串)
返回值
: 对象
额外
有关更多信息,请参阅文档。