MultiSafepay / magento2-core

Provides core functionalities
Open Software License 3.0
2 stars 10 forks source link

Prevent sending an order confirmation when an order is cancelled/expired #1

Closed basvanpoppel closed 3 years ago

basvanpoppel commented 3 years ago

Issue

Customers are receiving order confirmation emails when a transaction is expired:

Conditions:

Cause:

When Multisafepay send a notification to Magento, the function "processOrderTransaction" is called. This tries to send an order confirmation straight away, but does not check the transaction status.

Fix:

Check transaction status before sending the order confirmation.

ps. due to lack of time I have not (yet) written tests along with this PR. However I do hope this PR is of use for you.

vinodsowdagar commented 3 years ago

Hi @basvanpoppel ,

Thank you for your contribution. We will internally test this and add it to the next release.

vinodsowdagar commented 3 years ago

Hi @basvanpoppel ,

We just created a new release where we included this fix: https://github.com/MultiSafepay/magento2-core/releases/tag/2.6.0

Since the fix has already been merged and released, we will close this PR. As a thank you for your contribution we want to send you our newly designed t-shirt. Can you tell us via e-mail to which address we can send your gift and what your shirt size is? You can send the e-mail to integration@multisafepay.com and my colleagues will pick it up.