saythanks/laravel-tradesafe
最新稳定版本:v0.2.0
Composer 安装命令:
composer require saythanks/laravel-tradesafe
包简介
A Laravel SDK for the TradeSafe escrow GraphQL API.
README 文档
README
A Laravel SDK for the TradeSafe escrow GraphQL API.
[!WARNING] This package is in active early development. The public API may change before
1.0.
Installation
composer require saythanks/laravel-tradesafe
Publish the config:
php artisan vendor:publish --tag=tradesafe-config
Add to .env:
TRADESAFE_ENV=sandbox
TRADESAFE_CLIENT_ID=
TRADESAFE_CLIENT_SECRET=
TRADESAFE_CALLBACK_SECRET=
Quick start
use SayThanks\TradeSafe\Facades\TradeSafe;
$introspected = TradeSafe::schema()->enum('Role');
// → ['BUYER', 'SELLER', 'AGENT', 'BENEFICIARY_SUB_AGENT', ...]
$raw = TradeSafe::query('query { apiProfile { organizations { name token } } }');
Resource methods (tokens(), transactions(), allocations(), checkout(), profile()) and the typed event-based webhook handler are added in subsequent releases.
License
TODO
Update this readme
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-12