Skip to content

Kulatymic/skrill-php-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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('...');
$money = new Money(1, new Currency('USD'));
$request = new SaleRequest($transactionID, $this->parser->parse('10.5', 'EUR'));
$sid = $client->prepareSale($request);
$redirectURL = RedirectUrlFactory::fromSid($sid);

var_dump($redirectURL);

Source(s)

About

Skrill api php wrapper

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%