girosolution / girocheckout_sdk Goto Github PK
View Code? Open in Web Editor NEWPHP development SDK for connections to GiroCheckout Payment Gateway
License: GNU General Public License v3.0
PHP development SDK for connections to GiroCheckout Payment Gateway
License: GNU General Public License v3.0
Are there any plans on PHP 8 Support?
Hi!
Sendig the Bic as parameter is deprecated, so it shouldn't be mandatory in GiroCheckout_SDK_GiropayIDCheck.php
Not a great fan myself, because the Giropay-Page bank selection page says "Weiter zum Bezahlen" when I am using an authenticate-only project.
There is no class for checking the hash value of a giropay id notification URL, there should be something like:
$notify = new GiroCheckout_SDK_Notify( new GiroCheckout_SDK_GiropayTransaction_Confirm());
$notify->setSecret("******");
$notify->parseNotification( $_GET );
class GiroCheckout_SDK_GiropayTransaction_Confirm extends GiroCheckout_SDK_GiropayIDCheck
{
/*
* Includes any notify parameter of the API.
*/
protected $notifyFields = array(
'gcReference'=> TRUE,
'gcMerchantTxId' => TRUE,
'gcBackendTxId' => TRUE,
'gcResultAVS' => TRUE,
'gcAccountHolder' => TRUE,
'gsAccountIban' => TRUE,
'gsAccountBic' => TRUE,
'gcHash' => TRUE,
);
}
Hello Team,
I am getting this response despite creating the hash using merchantId, projectId, and projectpassword.
Response:
{
"reference": null,
"redirect": null,
"rc": 5002,
"msg": "hash ungültig"
}
When I followed the documentation in a proper way: It is possible to pass in a notifyUrl to a pay page transaction. This url will be called via GET and parameters prefixed with gc will be passed. Accordingly to the parameters there is a hash (gcHash) to validate the request. Is there any helper function inside the SDK to validate such a request easily? I had a look at the examples for the payment page, but I haven't discovered such a function.
When testing the Pseudo card numbers(PKN) with the test data card numbers (https://api.girocheckout.de/en:girocheckout:creditcard:start#test_data) the return message ist always 5102 - "Pseudo-Kartennummer nicht vorhanden".
Is it even possible to test this functionality witt the card numbers listed in the link above? Are there any other test data card numbers that can be used in test environment?
Thanks!
hello! So there's a composer package, nice! - it will take care of optimized autoloading - only loading classes with the girosolution\GiroCheckout_SDK\
prefix. Though as of writing the standalone GiroCheckout PHP SDK on api.girocheckout.de and within the Plugin zipfiles do not include the composer integration and have a lib/GiroCheckout_SDK/GiroCheckout_SDK.php
not present in this repo instead.
Unfortunately the implementation will check for presence of project wide classes in its path because of its preload=true
parameter to spl_autoload_register
. In some PHP configurations (open_basedir set, disabled realpath_cache) this will have a grave performance impact.
I think it would be nice to have the distributables zipfiles with composer too or change the autoloading to something along the lines of the PSR-4 example:
GiroCheckout_SDK.php
public static function load($classname) {
+ if (strpos($classname, 'GiroCheckout_SDK') === FALSE) {
+ // move to next autoloader if prefix does not belong to plugin
+ return;
+ }
I guess you planned for this anyway in the future, but I want to point out it's very much worth the effort.
Hello,
I am using a payment page with timeout in my test account. The timer is shown on the payment page, but when it times out, I don't get a notification via the notifyUrl. I would prefere a notification like "the payment failed".
Is this due to the test account or are such notifications not possible.
When I create a payment page request the response contains an URL like https://pay.girocheckout.de/<ID>
which will be redirected to https://pay.girocheckout.de/v1/paypage/de/<ID>
When the page without v1/paypage/de
will be opened again, the timer starts from scratch.
Is it possible to get a URL with the v1/paypage/de
directly, so that reloading will not reset the timer?
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.