Download the PHP package machour/konnect without Composer
On this page you can find all versions of the php package machour/konnect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package konnect
Konnect PHP SDK (unofficial)
The payment solution for Tunisia. Simple, fast, personalized, immediate and for all !
Installation
This SDK follows the PSR-18 "HTTP Client" standard, to allow for more interoperability.
It's most likely your framework will handle the dependencies injection for you, if not you can use any implementation of the spec.
The below example uses this two librairies:
SDK Initialization
API
initPayment(array $params)
Creates a new payment request.
See Konnect's documentation for the full description of $params
and the returned array.
See usage sample and output
getPaymentDetails(string $paymentId)
Gets payment details for the specified id.
See Konnect's documentation for the full description of the returned array.
Exceptions
This SDK throws a \Machour\Konnect\ApiException
if there's anything wrong with your call.
The exception's errors
property will contains the reported errors.
If however, something is wrong with the Konnect server, a PSR-18
exception will be thrown instead.
See also
All versions of konnect with dependencies
psr/http-client Version ^1.0
psr/http-client-implementation Version *
psr/http-factory Version ^1.0
psr/http-factory-implementation Version *
ext-json Version *