diff --git a/app/PaymentDrivers/MolliePaymentDriver.php b/app/PaymentDrivers/MolliePaymentDriver.php index ed333f259c40..6e08cbe3482a 100644 --- a/app/PaymentDrivers/MolliePaymentDriver.php +++ b/app/PaymentDrivers/MolliePaymentDriver.php @@ -353,6 +353,10 @@ class MolliePaymentDriver extends BaseDriver $response = SystemLog::EVENT_GATEWAY_FAILURE; if($record){ + + if(in_array($payment->status, ['canceled','expired','failed'])) + $record->service()->deletePayment(); + $record->status_id = $codes[$payment->status]; $record->save(); $response = SystemLog::EVENT_GATEWAY_SUCCESS; diff --git a/database/migrations/2022_05_23_050754_drop_redundant_column_show_production_description_dropdown.php b/database/migrations/2022_05_23_050754_drop_redundant_column_show_production_description_dropdown.php new file mode 100644 index 000000000000..60d4490eb737 --- /dev/null +++ b/database/migrations/2022_05_23_050754_drop_redundant_column_show_production_description_dropdown.php @@ -0,0 +1,30 @@ +dropColumn('show_production_description_dropdown'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}