Skip to content

Latest commit

 

History

History
116 lines (109 loc) · 2.32 KB

README.md

File metadata and controls

116 lines (109 loc) · 2.32 KB

worldline/sips-office-sdk-php

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