mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add Apple Domain Verification to Stripe Gateways
This commit is contained in:
parent
240df693a5
commit
996b3f246b
@ -0,0 +1,39 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use App\Models\Gateway;
|
||||||
|
use App\Utils\Ninja;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class AddAppDomainIdToGatewaysTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
|
||||||
|
if(Ninja::isHosted()){
|
||||||
|
|
||||||
|
$stripe_connect = Gateway::find(56);
|
||||||
|
$stripe_connect->fields = '{"account_id":"", "appleDomainVerification":""}';
|
||||||
|
$stripe_connect->save();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$stripe_connect = Gateway::find(20);
|
||||||
|
$stripe_connect->fields = '{"account_id":"", "appleDomainVerification":""}';
|
||||||
|
$stripe_connect->save();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user