Skrill PHP client

Skrill api php wrapper.

License Build Status codecov scrutinizer intelligence

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);

Source(s)

Skrill Php Client

Skrill api php wrapper

Skrill Php Client Info

⭐ Stars14
🔗 Source Codegithub.com
🕒 Last Updatea year ago
🕒 Created4 years ago
🐞 Open Issues4
➗ Star-Issue Ratio4
😎 Authorzhooravell