1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

fixes for mollie

This commit is contained in:
David Bomba 2022-05-24 20:12:24 +10:00
parent bb20f8324e
commit 808e54aa9a
2 changed files with 34 additions and 0 deletions

View File

@ -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;

View File

@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class DropRedundantColumnShowProductionDescriptionDropdown extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('companies', function (Blueprint $table) {
$table->dropColumn('show_production_description_dropdown');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}