mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Insert Apple Domain Verification into Stripe Gateway config
This commit is contained in:
parent
14c3fb30d4
commit
31e09de230
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
use App\Models\CompanyGateway;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class UpdateStripeAppleDomainConfig extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
|
||||
CompanyGateway::whereIn('gateway_key', ['d14dd26a47cecc30fdd65700bfb67b34', 'd14dd26a37cecc30fdd65700bfb55b23'])->cursor()->each(function($cg){
|
||||
|
||||
$config = $cg->getConfig();
|
||||
|
||||
if(!property_exists($config, 'appleDomainVerification')){
|
||||
|
||||
$config->appleDomainVerification = "";
|
||||
$cg->setConfig($config);
|
||||
$cg->save();
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user