1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00
This commit is contained in:
David Bomba 2024-09-19 08:04:24 +10:00
parent f3453b8e0f
commit 5af3498d5a
4 changed files with 5 additions and 5 deletions

View File

@ -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
];

View File

@ -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

View File

@ -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, []);

View File

@ -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();