You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I run an application through which I allow clients to charge their customers via their gateway of choice, and Square has come up as a recommended option. I have thus been attempting to integrate for two weeks with no success. Your documentation appears to suggest that OAuth is the way to go, so I have created a link in my app that clients can trigger, then authorize Square as a gateway, which generates the token that I store. This works fine.
I am attempting to set up the payment form in my app from the PHP code samples here, with virtually no alteration save a token that I managed to generate. The sandbox token generates this reply:
Caught exception! Response body: object(stdClass)#9 (1) < ["errors"]=>array(1) < [0]=>object(stdClass)#10 (4) < ["category"]=>string(21) "INVALID_REQUEST_ERROR" ["code"]=> string(26) "MISSING_REQUIRED_PARAMETER" ["detail"]=> string(27) "Missing required parameter." ["field"]=> string(10) "card_nonce" > > >
That's crazy, since 'card_nonce' is a parameter that isn't in one way referenced in any of these files or documentation. The production token is even better, causing a 500 error as $location->getId() collapses as $location is returned false. Mind you, I DO have a location with the production token, so the reason for this one is just as baffling.
I'm also wondering where/when I am supposed to inject the shopping cart items. in the JS or the PHP response?
I have previously submitted two requests for assistance through the contact form, and one generated no response while the other took 48 hours to answer a question I didn't ask. I also noticed that no matter how hard I try, it is impossible for me to get anyone with Square on the phone. Therefore raising an issue on Github appears to be my only remaining option.
The text was updated successfully, but these errors were encountered: