Skip to content
Roman Zhuravel edited this page Jun 14, 2019 · 4 revisions

Install

Via Composer

composer require zhooravell/skrill-php-client

Configuration

For using Skrill API You will need:

  • Secret word
  • Merchant ID
  • Merchant email
  • API/MQI password

Secret word

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

Merchant ID

Unique ID of your Skrill account. ONLY needed for the calculation of the MD5 signature.

Merchant email

Email address of your Skrill merchant account.

API/MQI password

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:

  1. Log in to your Skrill account at skrill.com.
  2. Go to Settings > Developer Settings.
  3. Check the Enable service checkbox next to the API and MQI.
  4. Specify at least one IP address from which requests will be made. All requests from other IP addresses are denied.
  5. Locate the Settings > Developer Settings > Change MQI/API password are.
  6. Enter a new password, then confirm it in the Re-type password field.
  7. To apply your changes, click Save. The MQI and API are now enabled.

PHP Skrill client

<?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);
Clone this wiki locally