diff --git a/app/Models/CompanyGateway.php b/app/Models/CompanyGateway.php index e98e7f274d..b411dfa212 100644 --- a/app/Models/CompanyGateway.php +++ b/app/Models/CompanyGateway.php @@ -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 ]; diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index 191d42e988..9b06a3a4b4 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -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 diff --git a/app/PaymentDrivers/Blockonomics/Blockonomics.php b/app/PaymentDrivers/Blockonomics/Blockonomics.php index cbf057cc3b..b2e5d88887 100644 --- a/app/PaymentDrivers/Blockonomics/Blockonomics.php +++ b/app/PaymentDrivers/Blockonomics/Blockonomics.php @@ -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, []); diff --git a/database/migrations/2024_08_27_230111_blockonomics_gateway.php b/database/migrations/2024_08_27_230111_blockonomics_gateway.php index f33ee3656e..14d13aa1a2 100644 --- a/database/migrations/2024_08_27_230111_blockonomics_gateway.php +++ b/database/migrations/2024_08_27_230111_blockonomics_gateway.php @@ -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();