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

View File

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

View File

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

View File

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