I have a website where I'm collecting a credit card payment using Square's API.
I'm using SocketTools to make the API calls.
The process is straight forward.
In sandbox mode:
1) Put the square sandbox JS file link in the web page header.
2) Collect the credit card info and make a request to Square using my sandbox application ID which returns a "nonce" token
3) Send the payment amount and nonce token to my PB CGI. It sets a couple HTTP headers including my sandbox authorization key, connects to the sandbox server, and sends a JSON string.
4) I receive a JSON string with either success or failure information
That is all working.
Now, I'm trying to switch to live mode.
The process is the same, I just have to change a few things.
1) switch out Square's sandbox JS with the live JS link in the web page header
2) switch out the sandbox app ID with my live app ID
3) change the auth code from sandbox to live in the HTTP header
4) change the endpoint URL from the sandbox server to live
When I do that, I get NOTHING in return. The Socket Tools HttpPostJson() function returns an empty string.
My Square dashboard log shows nothing.
Square tells me that they see the nonce request returned but nothing afterwards.
Switching everything back to sandbox works.
I'm stumped. I know it's several steps but it's pretty straight forward and I've double and triple checked stuff.
Anybody have any experience with this and have an idea?
I'm using SocketTools to make the API calls.
The process is straight forward.
In sandbox mode:
1) Put the square sandbox JS file link in the web page header.
2) Collect the credit card info and make a request to Square using my sandbox application ID which returns a "nonce" token
3) Send the payment amount and nonce token to my PB CGI. It sets a couple HTTP headers including my sandbox authorization key, connects to the sandbox server, and sends a JSON string.
4) I receive a JSON string with either success or failure information
That is all working.
Now, I'm trying to switch to live mode.
The process is the same, I just have to change a few things.
1) switch out Square's sandbox JS with the live JS link in the web page header
2) switch out the sandbox app ID with my live app ID
3) change the auth code from sandbox to live in the HTTP header
4) change the endpoint URL from the sandbox server to live
When I do that, I get NOTHING in return. The Socket Tools HttpPostJson() function returns an empty string.
My Square dashboard log shows nothing.
Square tells me that they see the nonce request returned but nothing afterwards.
Switching everything back to sandbox works.
I'm stumped. I know it's several steps but it's pretty straight forward and I've double and triple checked stuff.
Anybody have any experience with this and have an idea?
Comment