wallee-payment / php-sdk Goto Github PK
View Code? Open in Web Editor NEWWallee PHP SDK
Home Page: https://wallee.com
License: Apache License 2.0
Wallee PHP SDK
Home Page: https://wallee.com
License: Apache License 2.0
while integrate to laravel app i got to redirect to payment page and simulate success and fail but can't get response code for what happens with payment system
hi all, reading the documentation I can't understand how the webhook works. Once the payment process has been done, I need to redirect the user to a page, but from here on it's not clear to me how I can take the data and extrapolate it. I have already set up the webhook link from the panel. thank you
The sample code does not work.
Apart from the variable naming which is not correct
e.g. $client is initialised but then $apiClient is used
same goes for $services and $apiService
even after fixing the above, i do get the following exception
Wallee\Sdk\ApiException: [1217B46F-7AC4-2272-1409-586DE1476CF9] The entity query filter requires the type property. in Wallee\Sdk\Service\AccountService->countWithHttpInfo() (Zeile 147 in /vendor/wallee/sdk/lib/Service/AccountService.php).
Hi Ian Tring to use this library to integrate payment in laravel it is redirect me to payment methods selection page and after that card or other methods info but I want users and clients to choose payment methods at my app and another issue I can't redirect client to app once payment complete.
Sorry to bother you on this way, but I stuck somehow (and yes, I have read the documentary)
On the payment-response-page I run this code to check the transaction state:
$client = new \Wallee\Sdk\ApiClient($userId, $applicationKey);
$transactionService = new \Wallee\Sdk\Service\TransactionService($client);
$trData = $transactionService->read($spaceId, $tranactionId);
$state = $trData->getState();
But if the payment is successful I need some more details of the transaction, e.g. (Cardholder-Name, Cardbrand and -number, Card valid until....)
How can get those details?
Can someone point me in the right direction?
That would be nice
Roger
Pull request: #3
The sent request does either not contain the request parameter 'id' or it is invalid (e.g. wrong format).
The call from API returns this error. Upon further inspection, I found that this is caused by the buildRequestUrl method which uses http_build_query function which by default uses '&' as a separator. Normally if posting to another php5.3 machine this will not be a problem.
But if you post to a server with a newer PHP version or tomcat java server or something else the & might not be handled properly.
To overcome this specify:
http_build_query($array, '', '&');
and NOT
http_build_query($array);
in buildRequestUrl method. More specifically, change buildRequestUrl method in ApiClient.php to the following:
/**
* Returns the request url.
*
* @param string $path the request path
* @param array $queryParams an array of query parameters
* @return string
*/
private function buildRequestUrl($path, $queryParams) {
$url = $this->getBasePath() . $path;
if (!empty($queryParams)) {
$url = ($url . '?' . http_build_query($queryParams, '', '&'));
}
return $url;
}
Dear,
Does anyone have a sample code to send an amount to a terminal and wait for the payment status?
Thank you in advance
Hi wallee dev team
I just wanted to let you know that you added a non optional parameter in the function Wallee\Sdk\ApiClient::callApi() in your latest Patch Release 3.1.4.
Naturally this triggered a bunch of warnings on our end.
Next time, could you add a hint in the release notes?
Thank for your work
body of the issue 05-11 12:40
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.