PHP
PHP copied to clipboard
str.replace is not a function
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.
-
Error message when Pay button is clicked.

-
PHP-Laravel Code

-
PHP-Laravel Code Continuation

-
Logged data in Larvel Logger

@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