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