Skip to content

Commit

Permalink
Fixes for base urls
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Nov 5, 2024
1 parent 3b0c394 commit afb8b3c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/EInvoiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function quota(ShowQuotaRequest $request): \Illuminate\Http\Response
*/
$company = auth()->user()->company();

$response = \Illuminate\Support\Facades\Http::baseUrl(config('ninja.app_domain'))
$response = \Illuminate\Support\Facades\Http::baseUrl(config('ninja.hosted_ninja_url'))
->withHeaders([
'Content-Type' => 'application/json',
'Accept' => 'application/json',
Expand Down
8 changes: 4 additions & 4 deletions app/Http/Controllers/EInvoicePeppolController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function show(ShowEntityRequest $request): JsonResponse
{
$company = auth()->user()->company();

$response = Http::baseUrl(config('ninja.app_domain'))
$response = Http::baseUrl(config('ninja.hosted_ninja_url'))
->withHeaders([
'Content-Type' => 'application/json',
'Accept' => 'application/json',
Expand Down Expand Up @@ -107,7 +107,7 @@ public function setup(StoreEntityRequest $request, Storecove $storecove): Respon
*/
$company = auth()->user()->company();

$response = Http::baseUrl(config('ninja.app_domain'))
$response = Http::baseUrl(config('ninja.hosted_ninja_url'))
->withHeaders([
'Content-Type' => 'application/json',
'Accept' => 'application/json',
Expand Down Expand Up @@ -192,7 +192,7 @@ public function updateLegalEntity(UpdateEntityRequest $request)
{
$company = auth()->user()->company();

$response = Http::baseUrl(config('ninja.app_domain'))
$response = Http::baseUrl(config('ninja.hosted_ninja_url'))
->withHeaders([
'Content-Type' => 'application/json',
'Accept' => 'application/json',
Expand Down Expand Up @@ -232,7 +232,7 @@ public function disconnect(DisconnectRequest $request): \Illuminate\Http\Respons
*/
$company = auth()->user()->company();

$response = Http::baseUrl(config('ninja.app_domain'))
$response = Http::baseUrl(config('ninja.hosted_ninja_url'))
->withHeaders([
'Content-Type' => 'application/json',
'Accept' => 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/EInvoiceTokenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __invoke(UpdateTokenRequest $request): Response
/** @var \App\Models\User $user */
$user = auth()->user();

$response = Http::baseUrl(config('ninja.app_domain'))
$response = Http::baseUrl(config('ninja.hosted_ninja_url'))
->withHeaders([
'Content-Type' => 'application/json',
'Accept' => 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/LicenseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function check(CheckRequest $request): Response|JsonResponse
return response()->json(['message' => 'License not found. Make sure to update LICENSE_KEY in .env!'], status: 422);
}

$response = Http::baseUrl(config('ninja.app_domain'))
$response = Http::baseUrl(config('ninja.hosted_ninja_url'))
->withHeaders([
'Content-Type' => 'application/json',
'Accept' => 'application/json',
Expand Down
3 changes: 3 additions & 0 deletions lang/en/texts.php
Original file line number Diff line number Diff line change
Expand Up @@ -5443,6 +5443,9 @@
'bacs_stripe_help' => 'BACS Direct Debit for UK bank accounts, commonly used for subscription billing.',
'fpx_stripe_help' => 'FPX is a popular online payment method in Malaysia.',
'payment_means' => 'Payment Means',
'act_as_sender' => 'Send E-Invoice',
'act_as_receiver' => 'Receive E-Invoice',
'saved_einvoice_details' => 'Saved E-Invoice Settings',
);

return $lang;

0 comments on commit afb8b3c

Please sign in to comment.