-
Notifications
You must be signed in to change notification settings - Fork 16
Home
Roman Zhuravel edited this page Jun 14, 2019
·
4 revisions
Via Composer
composer require zhooravell/skrill-php-client
For using Skrill API You will need:
- Secret word
- Merchant ID
- Merchant email
- API/MQI password
The secret word must be submitted in the Settings > Developer Settings section of your Skrill Digital Wallet account before the md5sig can be used. The following restrictions apply when submitting your secret word:
- All characters must be in lowercase
- The length should not exceed 10 characters
- Special characters are not permitted (for example @, %, $, etc.)
Unique ID of your Skrill account. ONLY needed for the calculation of the MD5 signature.
Email address of your Skrill merchant account.
You will need to enable the MQI (merchant query interface) and API (automated payment interface) and set up an MQI/API password to use 1-Tap. To enable the MQI and/or API:
- Log in to your Skrill account at skrill.com.
- Go to Settings > Developer Settings.
- Check the Enable service checkbox next to the API and MQI.
- Specify at least one IP address from which requests will be made. All requests from other IP addresses are denied.
- Locate the Settings > Developer Settings > Change MQI/API password are.
- Enter a new password, then confirm it in the Re-type password field.
- To apply your changes, click Save. The MQI and API are now enabled.
<?php
use GuzzleHttp\Client;
use Skrill\SkrillClient;
use Skrill\ValueObject\Email;
use Skrill\ValueObject\Password;
$httpClient = new Client();
$email = new Email('...');
$password = new Password('...');
$client = new SkrillClient($httpClient, $email, $password);