thelia-modules / SoColissimo

[DEPRECATED] SoColissimo module for Thelia
GNU Lesser General Public License v3.0
1 stars 16 forks source link

Can't retry on payment fail #26

Closed lopes-vincent closed 9 years ago

lopes-vincent commented 9 years ago

When a payment failed if we use SoColissimo as delivery we can't retry the payment. We got this error message : "Got an error with So Colissimo module. Please try again to checkout."

This is because an AdressSocolissimo is created on event ORDER_SET_DELIVERY_MODULE and then deleted on event ORDER_BEFORE_PAYMENT. So on the second try we don't dispatch the ORDER_SET_DELIVERY_MODULE event and the address was not created.

So maybe we don't need to delete this address on ORDER_BEFORE_PAYMENT?