Square PHP SDK inegration

i have an error during integration of square php sdk

What’s the error message your getting? :slightly_smiling_face:

I downloaded square-php-sdk from gibhub and trying to just create a test page first to make sure it’s working, but it keeps giving error. Can’t figure out what’s the problem. Here are the details,

When I run card.php with sample credit card data, I keep getting the error Unexpected token '<', "<br /><b>… is not valid JSON in square.js:1. In the createPayment method, I put an alert(body) which shows proper token number. I pretty much did copy paste of all files with minor necessary changes so I don’t understand why it’s giving this error. Any help is greatly appreciated. Thanks.

1 Like

What’s the snippet of code that your getting this error with? :slightly_smiling_face: