mikica/skrill-quick

Skrill Quick Checkout Integration

1.02 2015-11-11 22:12 UTC

This package is auto-updated.

Last update: 2024-10-27 04:13:02 UTC


README

#Skrill Quick Checkout Integration

You can use this library to generate SESSION ID from Skrill, which is recommended method for connecting to Quick Checkout.

SKrill Quick Checkout Guide.pdf

##Installation composer require mikica/skrill-quick

##Usage

<?php
$request = new \Skrill\Quick\SkrillRequest();
$request->pay_to_email = 'skrill.merchant.email@gmail.com';
$request->amount = '100';
$request->currency = 'RSD';
$request->language = 'RS';
$request->prepare_only = '1';

$client = new \Skrill\Quick\SkrillClient($request);
$client->getRedirectUrl(); //return redirect url
$client->generateSID(); //return SESSION ID

##Testing

  • Unit tests: $ vendor/bin/phpunit