Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URI must be a string or UriInterface #5

Open
fuyonet opened this issue Jan 1, 2024 · 3 comments
Open

URI must be a string or UriInterface #5

fuyonet opened this issue Jan 1, 2024 · 3 comments

Comments

@fuyonet
Copy link

fuyonet commented Jan 1, 2024

after installing i open /laravel-nowpayments and get the error URI must be a string or UriInterface.

public/index.php : 52

$request = Request::capture()

@SalemCode8
Copy link
Contributor

Publish the config of the package using the following command

php artisan vendor:publish --provider="PrevailExcel\Nowpayments\NowpaymentsServiceProvider"

then go into config/nowpayments.php and change the function call from getenv to env

another solution is to set the environment variable that is responsible for your now payments URL in .env either for sandbox URL or live url

@fuyonet
Copy link
Author

fuyonet commented Jan 5, 2024

thank you for that,
publish command is the same like the install description. done.
in the config/nowpayments.php all functions have getenv and I change all to env. (you talk about one function?)

the error go away but new one.

I add also add the datas in the .env. I try to use live and sandbox. new error:

Client error: POST https://api.nowpayments.io/v1/auth resulted in a 400 Bad Request response: {"status":false,"statusCode":400,"code":"INVALID_REQUEST_PARAMS","message":"value must be of type object"}

@SalemCode8
Copy link
Contributor

This error will go once you add the email and password of your NowPayments account in your .env in
NOWPAYMENTS_EMAIL and NOWPAYMENTS_PASSWORD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants