Git Product home page Git Product logo

syliusmercanetbnpparibasplugin's Issues

PHP 8 support

Hi,

Would it be possible to add support for PHP 8?

error on shaCompose

Attempted to call function "shaCompose" from namespace "BitBag\MercanetBnpParibasPlugin\Legacy"

public function shaCompose(array $parameters)
    {
        // compose SHA string
        $shaString = '';
        foreach ($parameters as $key => $value) {
            if ($key != 'keyVersion') {
                if (is_array($value)) {
                    shaCompose($value);
                } else {
                    $shaString .= $value;
                }
            }
        }
        $shaString = str_replace("[", "", $shaString);
        $shaString = str_replace("]", "", $shaString);
        $shaString = str_replace("\",\"", "", $shaString);
        $shaString = str_replace("\"", "", $shaString);
        return $shaString;
    }

missing the $this-> before the shaCompose call;

This issue does not allow multiple payment with the instalment data.

Error when cancelling a payment

Hi,
I'm using SyliusMercanetBnpParibasPlugin 2.2.2 with Sylius 1.4.7.
When making an order, if I cancel my payment on Mercanet site, I get the following error when going back to sylius.

Unknown method getAuthorisationId

The error seems come from bitbag/mercanet-bnp-paribas-plugin/src/Action/CaptureAction.php, at line 93.

$model['authorisationId'] = $this->mercanetBnpParibasBridge->getAuthorisationId();

To remove the error, I have to replace this line with the following:

if ($model['status'] == PaymentInterface::STATE_COMPLETED) {
    $model['authorisationId'] = $this->mercanetBnpParibasBridge->getAuthorisationId();
}

In sylius back-office, cancelled and validated orders seem to be correctly saved.

Can you reproduce the bug? Is it a valid fix?
Thanks for your time.

Call to a member function setSecretKey() on string

When i chose the BNP Paribas mercanet solution for payment, it throws this error :

Call to a member function setSecretKey() on string in vendor/bitbag/mercanet-bnp-paribas-plugin/src/MercanetBnpParibasGatewayFactory.php (line 54)

I think that the service defined in $config['payum.http_client'] is not fetched and it's the string '@bitbag.mercanet_bnp_paribas.bridge.mercanet_bnp_paribas_bridge' in the array.

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.