zhooravell / skrill-php-client
Skrill api wrapper.
Installs: 2 657
Dependents: 0
Suggesters: 0
Security: 0
Stars: 17
Watchers: 2
Forks: 16
Open Issues: 4
Requires
- php: >=7.2
- ext-filter: *
- ext-json: *
- ext-mbstring: *
- ext-simplexml: *
- guzzlehttp/guzzle: 6.*
- moneyphp/money: ^3.2
Requires (Dev)
- infection/infection: ^0.15.3
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2025-01-04 18:49:52 UTC
README
Skrill api php wrapper.
Installing
$ composer require zhooravell/skrill-php-client
Examples
<?php use Money\Money; use Money\Currency; use GuzzleHttp\Client; use Skrill\SkrillClient; use Skrill\ValueObject\Email; use Skrill\Request\SaleRequest; use Skrill\ValueObject\Password; use Skrill\ValueObject\TransactionID; use Skrill\Factory\RedirectUrlFactory; $httpClient = new Client(); $email = new Email('...'); $password = new Password('...'); $client = new SkrillClient($httpClient, $email, $password); $transactionID = new TransactionID('...'); $request = new SaleRequest($transactionID, new Money(1, new Currency('USD'))); $sid = $client->prepareSale($request); $redirectURL = RedirectUrlFactory::fromSid($sid); var_dump($redirectURL);