mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
fixes for mollie
This commit is contained in:
parent
bb20f8324e
commit
808e54aa9a
@ -353,6 +353,10 @@ class MolliePaymentDriver extends BaseDriver
|
|||||||
$response = SystemLog::EVENT_GATEWAY_FAILURE;
|
$response = SystemLog::EVENT_GATEWAY_FAILURE;
|
||||||
|
|
||||||
if($record){
|
if($record){
|
||||||
|
|
||||||
|
if(in_array($payment->status, ['canceled','expired','failed']))
|
||||||
|
$record->service()->deletePayment();
|
||||||
|
|
||||||
$record->status_id = $codes[$payment->status];
|
$record->status_id = $codes[$payment->status];
|
||||||
$record->save();
|
$record->save();
|
||||||
$response = SystemLog::EVENT_GATEWAY_SUCCESS;
|
$response = SystemLog::EVENT_GATEWAY_SUCCESS;
|
||||||
|
@ -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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user