Git Product home page Git Product logo

prestashop-official's Issues

Order status remains stuck at initialized

Although in the multisafepay console the transaction status is completed, in the back office the transaction remains on MultiSafepay initialized and the transition to the accepted payment status does not take place

You have requested a non-existent service notice in backoffice

In development and staging with debugging mode we get this:

image

In production without debugging mode we get a 500.

These are the logs:

PrestaShop logs (var/logs)

./prod.log:[2022-05-20 17:03:13] request.CRITICAL: Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: "You have requested a non-existent service "multisafepay.payment_option_service"." at /var/www/example/example.com/public/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php line 348 {"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException(code: 0): You have requested a non-existent service \"multisafepay.payment_option_service\". at /var/www/example/example.com/public/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:348)"} []

Server logs

./example.com.access.log:83.219.74.254 - - [20/May/2022:14:37:27 +0200] "GET /adminxxxxxxxx/index.php?controller=AdminModules&configure=multisafepayofficial&token=700085417bd3cb03b7fd8f1f71efbf28 HTTP/2.0" 500 495 "https://www.example.com/adminxxxxxxxx/index.php/improve/modules/manage?_token=EBNLuNIXao25jl6H3ZsJfMXJ8zEKr14CsuivalxpBnU" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36" "-" "www.example.com" 0.568

Module version: 5.4.2

Partial Refund issue

Latest Version: 5.6.
Bug: When refund an order, the total order amount is being refunded.
Example: Push partial refund. And total order amount refund is send to MSP.

When you have 2 products in the order, only the partial refund (amount of 1 of the 2 products) need to be refunded.
Scherm­afbeelding 2022-12-28 om 18 07 01

afbeelding

Error in hookActionSetInvoice function

Hello,

I installed the plugin and I got an error in the function hookActionSetInvoice on these lines :

$orderInvoice = OrderInvoice::getInvoiceByNumber($params['OrderInvoice']->id);
$orderInvoiceNumber = $orderInvoice->getInvoiceNumberFormatted($order->id_lang, $order->id_shop);

The error :
Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function getInvoiceNumberFormatted() on bool

We are on PS 1.7.7.3.

I changed the line
$orderInvoice = OrderInvoice::getInvoiceByNumber($params['OrderInvoice']->id);
by
$orderInvoice = $params['OrderInvoice'];

And that is OK now.

It seems logical because on the hook ActionSetInvoice in the class Order, the variables sent are

$invoice_number = Hook::exec('actionSetInvoice', [
get_class($this) => $this,
get_class($order_invoice) => $order_invoice,
'use_existing_payment' => (bool) $use_existing_payment,
]);

So the var 'OrderInvoice' is already an object 'OrderInvoice' so no need to refetch again the invoice by number, we already have it.

Or I'm wrong ?

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.