saythanks/laravel-tradesafe

A Laravel SDK for the TradeSafe escrow GraphQL API.

Maintainers

Package info

bitbucket.org/saythanks/laravel-tradesafe

Homepage

pkg:composer/saythanks/laravel-tradesafe

Statistics

Installs: 14

Dependents: 0

Suggesters: 0

v0.1.0 2026-05-12 08:10 UTC

This package is auto-updated.

Last update: 2026-05-12 08:14:27 UTC


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

MIT

TODO

Update this readme