hexters / CoinPayment

Package to handle payment of cryptocurrency
https://www.coinpayments.net/index.php?ref=3dc0c5875304cc5cc1d98782c2741cb5
MIT License
73 stars 42 forks source link

Cannot use object of type Illuminate\Http\JsonResponse as array #29

Closed thevis009 closed 4 years ago

thevis009 commented 4 years ago

I tried with laravel 5.6 issue in transaction create: Something look like wrong.

Now I try it with laravel 5.8, I receive :

Cannot use object of type Illuminate\Http\JsonResponse as array

How can I solve this issue please?

kitspoitwaecy commented 4 years ago

Did you find the solution already? I have also the same error.

hexters commented 4 years ago

I think Illuminate\Http\JsonResponse ready on version 5.8 https://laravel.com/api/5.8/Illuminate/Http/JsonResponse.html

hexters commented 4 years ago

For me everything is well see this video Example Video

kitspoitwaecy commented 4 years ago

What is your solution?

kitspoitwaecy commented 4 years ago

I'm using laravel 6.x, and it always show Illuminate\Http\JsonResponse What i'm going to use? 5.8? version?

kitspoitwaecy commented 4 years ago

https://fastbit.ielev8net.com/assets/images/error.png that's the error.

please help me.

hexters commented 4 years ago

Your coin has active?

hexters commented 4 years ago

I think your plublem in coinpayment configuration

paulwaldmann commented 4 years ago

For anyone experiencing this issue in the future, make sure you whitelist the IP from where you're accessing the API from. After adding the IP, it worked like a charm.

https://www.coinpayments.net/index.php?cmd=acct_api_keys