Controller can't return json data |
Hello, I'm currently working with the PHP framework Codeigniter 4.0.4 and trying to add the PayPal Checkout Intergration with Smart Payment Buttons.
Console error: Code: Uncaught SyntaxError: Unexpected token < in JSON at position 0 Serverside: PHP Code: $clientId = getenv('paypal.CLIENT_ID'); Clientside: PHP Code: <script type="text/javascript"> $response outputs the whole page I guess, how I can only return the $response json? |
Messages In This Thread |
Controller can't return json data - by shoXyRafael - 10-13-2020, 10:23 AM
RE: Controller can't return json data - by T.O.M. - 10-14-2020, 11:17 PM
RE: Controller can't return json data - by waqaschughtai91 - 04-30-2021, 02:59 PM
RE: Controller can't return json data - by InsiteFX - 04-30-2021, 08:44 PM
|