Looking to hire Laravel developers? Try LaraJobs

laravel-tradesafe maintained by saythanks

Description
A Laravel SDK for the TradeSafe escrow GraphQL API.
Author
Last update
2026/05/12 10:10 (dev-master)
License
Downloads
3

Comments
comments powered by Disqus

laravel-tradesafe

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

MIT

TODO

Update this readme