Download the PHP package paycryptoone/paycrypto-payouts-php-client without Composer

On this page you can find all versions of the php package paycryptoone/paycrypto-payouts-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package paycrypto-payouts-php-client

PayCrypto payouts PHP client

Клиент Guzzle для API выплат PayCrypto: базовый URL по умолчанию https://api.paycrypto.one/api/v1/ (в нём уже есть /api/v1), дальше относительные пути payout/.... Авторизация: Authorization: Bearer sk_payout_*; мастер-пароль при создании выплаты — заголовок X-Payout-Master-Password или поле masterPassword в теле.

Установка

С Packagist (предпочтительно), пакет paycryptoone/paycrypto-payouts-php-client:

Локально из клона:

Инициализация

Примеры по endpoint-ам

Семантика currency и to_currency

amount всегда в валюте currency. Если to_currency не передан или совпадает с currency, конвертации нет. Если to_currency другой — сумма пересчитывается в to_currency по курсам из базы (через USD). Пример: amount = 0.01, currency = USD, to_currency = LTC — к получателю уйдёт эквивалент 0,01 USD в LTC.

network и address должны соответствовать итоговой монете (to_currency при конвертации, иначе currency). С баланса кошелька списывается монета фактической выплаты.

POST /payout/services — список сервисов выплат

POST /payout/calc — расчет комиссии и суммы

Вариант 1: без конвертации

Вариант 2: с приоритетом сети

Вариант 3: сумма в USD, выплата в USDT

POST /payout — создание выплаты

Вариант 1: master password вторым аргументом

Вариант 2: сумма в USD, выплата в USDT

Вариант 3: masterPassword в теле

POST /payout/info — информация по выплате

POST /payout/list — история выплат

Вариант 1: без фильтров

Вариант 2: фильтр по датам

Вариант 3: пагинация по cursor

POST /payout/resend — повтор webhook

Обработка ошибок

Webhook

Тесты

Живой API (расширенные сценарии)

composer test:live выполняет scripts/live-api.php: реальные HTTP-запросы при заданном PAYCRYPTO_PAYOUT_API_KEY (см. .env.example).

Поведение такое же, как у Node-клиента: безопасные шаги всегда; выплата и повторный create с тем же order_id только при PAYCRYPTO_PAYOUT_LIVE_WITHDRAW=1 и PAYCRYPTO_PAYOUT_MASTER_PASSWORD. Скрипт composer e2e при заданном мастер-пароле всегда создаёт одну реальную выплату (короткий сценарий).

Скрипты

Переменные окружения см. .env.example.

Если composer и php не установлены локально, можно из каталога пакета:

Для полного прогона с выплатой добавь в docker run переменные -e PAYCRYPTO_PAYOUT_LIVE_WITHDRAW=1 -e PAYCRYPTO_PAYOUT_MASTER_PASSWORD=....


All versions of paycrypto-payouts-php-client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
guzzlehttp/guzzle Version ^7.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package paycryptoone/paycrypto-payouts-php-client contains the following files

Loading the files please wait ...