thelia-modules / SoColissimo

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

Fix #26 with issue on payment retry #27

Closed lopes-vincent closed 9 years ago

lopes-vincent commented 9 years ago

This PR fix #26 issue with error on payment retry due to deletion of the address_socolissimo before payment.

So SoColissimo can't retrieve it when trying to retry the payment an he throw an exception.

$tmp_address = AddressSoColissimoQuery::create()
    ->findPk($request->getSession()->get('SoColissimoDeliveryId'));
if ($tmp_address === null) {
    throw new \ErrorException("Got an error with So Colissimo module. Please try again to checkout.");
}

I just remove the deletion.