worldline/sips-office-sdk-php
This package provides a PHP implementation for the Sips Office JSON, Paypage JSON and Walletpage JSON API's., (*1)
:warning: This library is written for Sips 2.0 and is not compatible with Sips 1.0., (*2)
\
\
\
, (*3)
Installation
The easiest way to install os through Composer.
Use composer to install the latest version of the library., (*4)
composer require worldline/sips-office-sdk
After installing, don't forget to require composer's autoloader if needed., (*5)
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), (*6)
$env = new PaypageEnvironment("PROD");
Then use this environment to set up the client., (*7)
$client = new SipsClient($env, "merchantId", "secretKey", keyVersion);
Use included functions.
doCardOrder
description, (*8)
example
doWalletOrder
description, (*9)
example
doGetBcmcIntent
description, (*10)
example
doGetBcmcQr
description, (*11)
example
doPaymentProviderFinalize
description, (*12)
example
doGetTransactionData
description, (*13)
example
doRefund
description, (*14)
example
doDuplicate
description, (*15)
example
doAddCard
description, (*16)
example
doGetWalletData
description, (*17)
example
doGetPaymentMean
description, (*18)
example
doDeletePaymentMean
description, (*19)
example
doSignoffWallet
description, (*20)
example
Advanced requests.
blabla, (*21)
Additional functions.
getLastRequestAsJSON()
blabla
php
voorbeeld
#### getLastResponseAsJSON()
blabla
php
voorbeeld
, (*22)