PayPal Smart Buttons returns me JSON error
问题 I'm implementing Express Checkout Integration in PHP (using PayPal Smart Buttons) but I get an error when I try to pay. The error is triggered when the createOrder function is called. I believe the error lies in the server side, because the fetch is being executed successfully and the server generates an ORDER ID, however it does not properly pass the ORDER ID to the client and I end up with the following error: Error: Unexpected token S in JSON at position 0 I don't know what could be wrong