worldline/sips-office-sdk

This library simplifies the use of Sips 2.O, the e-payments API.

1.0.3 2020-03-12 16:06 UTC

This package is auto-updated.

Last update: 2024-03-29 03:32:57 UTC


README

This package provides a PHP implementation for the Sips Office JSON, Paypage JSON and Walletpage JSON API's.

⚠️ This library is written for Sips 2.0 and is not compatible with Sips 1.0.

Github last commit
GitHub release (latest by date including pre-releases)
GitHub issues GitHub closed issues
GitHub

Installation

The easiest way to install os through Composer. Use composer to install the latest version of the library.

composer require worldline/sips-office-sdk

After installing, don't forget to require composer's autoloader if needed.

require_once 'vendor/autoloader.php';

Usage

Setup

First, set up the environment. Depending on the API you wish to use, there is a PaypageEnvironment, OfficeEnvironment and WalletEnvironment. Each API can be used in production (PROD) and in test (TEST)

$env = new PaypageEnvironment("PROD");

Then use this environment to set up the client.

$client = new SipsClient($env, "merchantId", "secretKey", keyVersion);

Use included functions.

doCardOrder

description

example

doWalletOrder

description

example

doGetBcmcIntent

description

example

doGetBcmcQr

description

example

doPaymentProviderFinalize

description

example

doGetTransactionData

description

example

doRefund

description

example

doDuplicate

description

example

doAddCard

description

example

doGetWalletData

description

example

doGetPaymentMean

description

example

doDeletePaymentMean

description

example

doSignoffWallet

description

example

Advanced requests.

blabla

Additional functions.

getLastRequestAsJSON()

blabla

voorbeeld

getLastResponseAsJSON()

blabla

voorbeeld