kingflamez / laravelrave

A Laravel Package for Flutterwave 🦄
MIT License
137 stars 112 forks source link

Undefined 0 index in Transfer Class #89

Open justiceroyale1 opened 2 years ago

justiceroyale1 commented 2 years ago

When I tried to use the transfers method to get transfer rates. I got an undefined 0 index error.

I traced the issue to line 155 in the KingFlamez\Rave\Helpers\Transfers class

$transfer['data'] = $transfer['data'][0];

The above code was the culprit.

I had to create a copy of this class and comment out the offending line to get the code to work.

I suggest that you remove this line of code. Thank you.