PAYONE-GmbH / magento-2

PAYONE Payment Extension for Magento 2
28 stars 56 forks source link

Double Invoice Created After Even paid order #397

Closed shoaibgits closed 2 years ago

shoaibgits commented 2 years ago

We have Payone with the Magento2 , the issue we are facing right now is, there are two automatically invoices generated after the successful payment for an order, and order is not in processing instead of complete or updating the current generating invoice it is creating a separate a new one,

This is the double invoice screenshot: image

And here the comments from StatusMapping of Payone: image

we have Magento version: 2.3.4 and latest Extension version 3.2.0

is there any setting , configuration to solve this or need to do some customization in the code.

thanks!

hreinberger commented 2 years ago

Hi, what seems strange to me is that there are two entries for the "appointed" status. Our API Log tells me that there's been a timeout the first time we tried to send the "appointed" webhook. It seems like Magento did indeed process the webhook but wasn't able to reply in time for our connection timeout.

Still, on "authorization" transactions, Magento should generate the invoice only after the "paid" webhook arrives, so it's still strange to me that there are two invoices here. We'll look into this. If the issue persists, please contact our technical support under tech[dot]support[at]payone.com with the txid in question and link to this issue.

shoaibgits commented 2 years ago

Can we have some progress here on this issues, support ticket is not getting any feedback reply, so currently stuck with this double invoice thing. what further can do with this, any suggestions?

hreinberger commented 2 years ago

Hi @shoaibgits do you have a rough estimate on how many of your orders are behaving this way? Setting the authorization mode to "preauthorization" would very likely fix this, but then you would have to manually capture all orders - not sure if that fits your workflow.

shoaibgits commented 2 years ago

@hreinberger when it is planned to merge this PR in master and release it?

hreinberger commented 2 years ago

Hi @shoaibgits we're currently in the testing process for this and expect to merge it next week. Soon after that we'll also publish a new release of the plugin.

shoaibgits commented 2 years ago

Thanks for the Update, looking forward for the release!