mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-02 19:14:35 -04:00
Cleanup
This commit is contained in:
parent
f3453b8e0f
commit
5af3498d5a
@ -154,7 +154,7 @@ class CompanyGateway extends BaseModel
|
|||||||
'b9886f9257f0c6ee7c302f1c74475f6c' => 321, //GoCardless
|
'b9886f9257f0c6ee7c302f1c74475f6c' => 321, //GoCardless
|
||||||
'hxd6gwg3ekb9tb3v9lptgx1mqyg69zu9' => 322,
|
'hxd6gwg3ekb9tb3v9lptgx1mqyg69zu9' => 322,
|
||||||
'80af24a6a691230bbec33e930ab40666' => 323,
|
'80af24a6a691230bbec33e930ab40666' => 323,
|
||||||
'vpyfbmdrkqcicpkjqdusgjfluebftuva' => 324, //BTPay
|
'vpyfbmdrkqcicpkjqdusgjfluebftuva' => 324, //BTCPay
|
||||||
'91be24c7b792230bced33e930ac61676' => 325,
|
'91be24c7b792230bced33e930ac61676' => 325,
|
||||||
'wbhf02us6owgo7p4nfjd0ymssdshks4d' => 326, //Blockonomics
|
'wbhf02us6owgo7p4nfjd0ymssdshks4d' => 326, //Blockonomics
|
||||||
];
|
];
|
||||||
|
@ -25,7 +25,7 @@ namespace App\Models;
|
|||||||
* @property bool $is_offsite
|
* @property bool $is_offsite
|
||||||
* @property bool $is_secure
|
* @property bool $is_secure
|
||||||
* @property object|null|string $fields
|
* @property object|null|string $fields
|
||||||
* @property string $default_gateway_type_id
|
* @property string|int $default_gateway_type_id
|
||||||
* @property int|null $created_at
|
* @property int|null $created_at
|
||||||
* @property int|null $updated_at
|
* @property int|null $updated_at
|
||||||
* @property-read mixed $options
|
* @property-read mixed $options
|
||||||
|
@ -49,8 +49,8 @@ class Blockonomics implements MethodInterface
|
|||||||
public function getBTCAddress(): string
|
public function getBTCAddress(): string
|
||||||
{
|
{
|
||||||
$api_key = $this->blockonomics->api_key;
|
$api_key = $this->blockonomics->api_key;
|
||||||
$params = config('ninja.environment') == 'development' ? '?reset=1' : '';
|
// $params = config('ninja.environment') == 'development' ? '?reset=1' : '';
|
||||||
$url = 'https://www.blockonomics.co/api/new_address' . $params;
|
$url = 'https://www.blockonomics.co/api/new_address';
|
||||||
|
|
||||||
$r = Http::withToken($api_key)
|
$r = Http::withToken($api_key)
|
||||||
->post($url, []);
|
->post($url, []);
|
||||||
|
@ -28,7 +28,7 @@ return new class extends Migration
|
|||||||
$gateway->fields = \json_encode($fields);
|
$gateway->fields = \json_encode($fields);
|
||||||
|
|
||||||
|
|
||||||
$gateway->visible = 1;
|
$gateway->visible = true;
|
||||||
$gateway->site_url = 'https://blockonomics.co';
|
$gateway->site_url = 'https://blockonomics.co';
|
||||||
$gateway->default_gateway_type_id = GatewayType::CRYPTO;
|
$gateway->default_gateway_type_id = GatewayType::CRYPTO;
|
||||||
$gateway->save();
|
$gateway->save();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user