Skip to main content

PHP SDK

  • PHP client for API documentation for Skip Pay partners.

  • API version: 1.0

For more information, please visit our Github

Installation​

Requirements​

PHP 7.4 and later. Should also work with PHP 8.0.

Composer​

To install the bindings via Composer, add the following to composer.json:

{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/skip-pay/skippay-payments-php-sdk.git"
}
],
"require": {
"skippay/skippay-php-sdk": "*@dev"
}
}

Then run composer install

Manual Installation​

Download the files and include autoload.php:

<?php
require_once('/path/to/skippay-php-sdk/vendor/autoload.php');

Getting Started​

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$config = SkipPay\Configuration::getDefaultConfiguration();

$authApi = new SkipPay\Api\SecurityApi(
new GuzzleHttp\Client(),
$config,
);

$username = 'USER_NAME';
$password = 'PASSWORD';

// Obtain access token
$authResponse = $auth->loginpartner([
'username' => $username,
'password' => $password
]);

// Configure access token
$config->setAccessToken($authResponse['accessToken']);

$sdk = new SkipPay\Api\Sdk(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$applicationId = 11b00a1ef1; // string | applicationId
$applicationCancelRequest = new \SkipPay\Model\ApplicationCancelRequest(); // \SkipPay\Model\ApplicationCancelRequest

try {
$result = $sdk->ApplicationOperationsApi->cancelapplication($applicationId, $applicationCancelRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ApplicationOperationsApi->cancelapplication: ', $e->getMessage(), PHP_EOL;
}

API Endpoints​

All URIs are relative to https://api.partner.skippay.eu

ClassMethodHTTP requestDescription
ApplicationOperationsApicancelapplicationPUT /financing/v1/applications/{applicationId}/cancelCancel application
ApplicationOperationsApichangeapplicationorderPUT /financing/v1/applications/{applicationId}/orderChange application order
ApplicationOperationsApicreateapplicationPOST /financing/v1/applicationsCreate application
ApplicationOperationsApicreateapplicationfromrecurrencePOST /financing/v1/recurrences/{recurrenceId}/applicationsCreate application from recurrence
ApplicationOperationsApigetapplicationdetailGET /financing/v1/applications/{applicationId}Get application detail
ApplicationOperationsApigetorderGET /financing/v1/ordersGet order
ApplicationOperationsApigetpaymentsonspecificapplicationGET /financing/v1/applications/{applicationId}/paymentsGet payments on specific application
ApplicationOperationsApigetrecurrenceGET /financing/v1/recurrences/{recurrenceId}Get recurrence
ApplicationOperationsApimarkorderitemsascancelledPUT /financing/v1/applications/{applicationId}/order/cancelMark order items as cancelled
ApplicationOperationsApimarkorderitemsasdeliveredPUT /financing/v1/applications/{applicationId}/order/deliverMark order items as delivered
ApplicationOperationsApimarkorderitemsasreturnedPUT /financing/v1/applications/{applicationId}/order/returnMark order items as returned
ApplicationOperationsApimarkorderitemsassentPUT /financing/v1/applications/{applicationId}/order/sendMark order items as sent
ApplicationOperationsApiupdaterecurrencePATCH /financing/v1/recurrences/{recurrenceId}Update recurrence
HealthCheckApiAPIhealthcheckGET /v1/healthAPI health check
SecurityApiloginpartnerPOST /authentication/v1/partnerLogin partner

Authorization​

httpBearer​

  • Type: Bearer authentication

Author​

info@skippay.cz