Flutterwave / PHP-v3

PHP Library for Flutterwave v3 APIs
MIT License
18 stars 17 forks source link

str.replace is not a function #33

Closed paulyeb closed 1 year ago

paulyeb commented 2 years ago

I am using a PHP-Laravel API together with Next.js on an application. A click on my Pay Now (checkout) button in the frontend makes an API call to the controller responsible for handling the flutterwave activity. I keep getting the same error of "str.replace not a function" in this manner { status: 'error', message: 'str.replace is not a function', data: null }. I would appreciate any form of assistance. Attached are screenshot of my codes and the respective error messages.

  1. Error message when Pay button is clicked. consoled-error-image

  2. PHP-Laravel Code flutterwave-issue-1

  3. PHP-Laravel Code Continuation flutterwave-issue-2

  4. Logged data in Larvel Logger flutterwave-logger-image

salvationarinze commented 2 years ago

@paulyeb I couldn't replicate the issue. To proceed, I will recommend you update the package and try again. If, any issue is encountered, please share in detail how to replicate. Thanks