Git Product home page Git Product logo

girocheckout_sdk's People

Stargazers

 avatar  avatar Bernhard Sirlinger avatar  avatar Commander Keen avatar

Watchers

 avatar

girocheckout_sdk's Issues

Bic no longer mandatory for ID

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.

Giropay ID Notify URL hash

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,
    );
}

Invalid hash response despite creating it properly

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"
}

Check vadility of the notifyUrl using PaymentPage

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.

spl_autoload_register preload bug in static distrib file, integrate composer in distributables?

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.

PaymentPage with timeout

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.