This version is a rewrite of the SDK.
To use this new version, your application need to be at least on PHP 7.1. Support for previous versions have been dropped.
Previously, the SDK required Guzzle ^6. Now, you are free to use your preferred HTTP client thanks to HTTPlug. For this, just check our README.md, there are examples for Guzzle and Symfony clients.
The Fintecture client Fintecture\Client is now divided in two clients:
Fintecture\AisClientfor AIS operationsFintecture\PisClientfor PIS operations
It follows the structure of our API.
The two clients (AisClient and PisClient) handle Ressources operations.
You now have to generate a token and associate to the client one time before your requests:
$pisToken = $pisClient->token->generate();
if (!$pisToken->error) {
$pisClient->setAccessToken($pisToken); // set token of PIS client
} else {
echo $pisToken->errorMsg;
}The clients have a new redirect function to simplify your integration:
$aisClient->redirect('https://example.com');See the README for some explanations and see also the examples folder to see usage examples.