PHP icon indicating copy to clipboard operation
PHP copied to clipboard

str.replace is not a function

Open paulyeb opened this issue 3 years ago • 1 comments

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

paulyeb avatar Jun 22 '22 12:06 paulyeb

@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

salvationarinze avatar Jun 30 '22 19:06 salvationarinze