diff --git a/classes/actions/ValidationOrderActions.php b/classes/actions/ValidationOrderActions.php index f8df50d..cf1188b 100755 --- a/classes/actions/ValidationOrderActions.php +++ b/classes/actions/ValidationOrderActions.php @@ -834,7 +834,7 @@ public function chargeWebhook() if ((bool) $currentState->paid === true) { if ($this->conveyor['event_json']->data->object->amount_refunded !== $this->conveyor['event_json']->data->object->amount_captured || $this->conveyor['event_json']->data->object->amount_refunded !== $this->conveyor['event_json']->data->object->amount) { - $newOrderState = empty(Configuration::get('PS_CHECKOUT_STATE_PARTIAL_REFUND')) ? Configuration::get('PS_OS_REFUND') : Configuration::get('PS_CHECKOUT_STATE_PARTIAL_REFUND'); + $newOrderState = empty(Configuration::get('PS_CHECKOUT_STATE_PARTIAL_REFUND')) ? Configuration::get('PS_OS_REFUND') : Configuration::get('PS_CHECKOUT_STATE_PARTIAL_REFUND'); $order->setCurrentState($newOrderState); ProcessLoggerHandler::logInfo( 'Partial refund of payment => ' . $this->conveyor['event_json']->data->object->id, diff --git a/stripe_official.php b/stripe_official.php index b75f213..48e3814 100755 --- a/stripe_official.php +++ b/stripe_official.php @@ -496,7 +496,13 @@ public function install() if (!parent::install()) { return false; } + } catch (PrestaShopDatabaseException $e) { + PrestaShopLogger::addLog($e->getMessage() . $e->getTraceAsString(), 1); + } catch (PrestaShopException $e) { + PrestaShopLogger::addLog($e->getMessage() . $e->getTraceAsString(), 1); + } + try { $installer = new Stripe_officialClasslib\Install\ModuleInstaller($this); if (!$installer->install()) {