rabobank-nederland / omnikassa-php-sdk Goto Github PK
View Code? Open in Web Editor NEWThis repository contains the official PHP SDK for Rabo OmniKassa.
Home Page: https://www.rabobank.nl/omnikassa
License: MIT License
This repository contains the official PHP SDK for Rabo OmniKassa.
Home Page: https://www.rabobank.nl/omnikassa
License: MIT License
Should be MIT, however the composer.json
file says proprietary.
Hello,
We use omnikassa in our application, and sometimes the sandbox environment is unavailable, the problem is that the error that is send when the service is unavaible doesn't speak for itself. We hava a Warning: Trying to access array offset on value of type null
send from the class AccessToken
line 48.
Maybe a fix can be to see if the access token contain an error message before creating the access token from the json in the method retrieveNewToken
in the class ApiConnector
like this:
/**
* @return AccessToken
*/
private function retrieveNewToken()
{
$refreshToken = $this->tokenProvider->getRefreshToken();
$this->restTemplate->setToken($refreshToken);
$accessTokenJson = $this->restTemplate->get('gatekeeper/refresh');
if (str_contains($accessTokenJson, 'Tijdelijk niet beschikbaar')) {
throw new \HttpException('OmniKassa is temporarily unavailable', 503);
}
return AccessToken::fromJson($accessTokenJson);
}
What do you think?
Is there any chance the PHP implementation will be updated to use guzzle version 7?
Hello, I have an issue with making transactions with certain amounts(37.91 and 68.57, EUR), in an older version of your SDK, this was an issue with the rounding of numbers and is fixed in the newer versions, but when I updated our entire SDK, I got an error which states " Fatal error: Uncaught GuzzleHttp\Ring\Exception\ConnectException: cURL error 6: Could not resolve host: gatekeeper;".
So I ended up updating only the part that rounds the total price of the transaction, but when this is done, it takes those 2 amounts, adds 1 cent and creates the transaction, which results in the amount to be paid ends up being 37.92 or 68.58.
Do you current solution for these problems?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.