lyra / plugin-magento

An open source plugin that links Magento based e-commerce websites to PayZen secure payment gateway developed by Lyra Network.
https://lyra.com/fr/guides/magento/
Open Software License 3.0
10 stars 12 forks source link

Bug ResponseProcessor and bad order ID #24

Closed angelflo closed 3 years ago

angelflo commented 3 years ago

Hi,

During the test on magento 2.4.3 CE and last 2.5.9 version of your extension with our One Step Checkout process (amasty One Step Checkout) => I try to validate a 1st order and it work well. After that with same customer , i try to create and validate a new order => I receive error "Order #4000000102 has already been processed"

So please can you help me fix this MAJOR and CRITICAL bug ...

Trace Log : [2021-09-25 07:30:23] payzen.INFO: payzen 2.5.9 - Lyranetwork\Payzen\Controller\Payment\Rest\Token::execute : Form token updated for quote #1043, reserved order ID: #4000000105. [IP = 82.65.155.53] [] [] [2021-09-25 07:30:23] payzen.INFO: payzen 2.5.9 - Lyranetwork\Payzen\Model\Method\Standard::getRestApiFormToken : Form token created successfully for quote #1043, reserved order ID: #4000000105. [IP = 82.65.155.53] [] [] [2021-09-25 07:30:23] payzen.INFO: payzen 2.5.9 - Lyranetwork\Payzen\Controller\Payment\Rest\Token::execute : Form token updated for quote #1043, reserved order ID: #4000000105. [IP = 82.65.155.53] [] [] [2021-09-25 07:30:34] payzen.INFO: payzen 2.5.9 - Lyranetwork\Payzen\Model\Method\Payzen::initialize : Initialize payment called with action authorize. [IP = 82.65.155.53] [] [] [2021-09-25 07:30:53] payzen.INFO: payzen 2.5.9 - Lyranetwork\Payzen\Controller\Processor\ResponseProcessor::execute : Request authenticated for order #4000000102. [IP = 82.65.155.53] [] [] [2021-09-25 07:30:53] payzen.INFO: payzen 2.5.9 - Lyranetwork\Payzen\Controller\Processor\ResponseProcessor::execute : Order #4000000102 has already been processed. [IP = 82.65.155.53] [] [] [2021-09-25 07:30:53] payzen.ERROR: payzen 2.5.9 - Lyranetwork\Payzen\Controller\Payment\Response::execute : Invalid payment result received for already saved order #4000000102. Payment result: ABANDONED, order status : processing. [IP = 82.65.155.53] [] []

WHY suddently I have a old (previous) order ID initialised ???? in that case 4000000102 who replace the current 4000000105

Thanks a lot in advance.

angelflo commented 3 years ago

Hi again, seems now fixed and was due to a missing route exclusion in varnish configuration. so no problem with the extension even if i need to do more test to confirm.

nabil509 commented 3 years ago

Hi,

Thank you for your feedback.