I have been trying to get my web site set up integrating the ecommerce form into the site. I managed to get it working using Sandbox credentials but as soon as I switched it to "live", replacing the location ID, application ID and access tokens for live data, and attempted to charge myself $1.00, I began to receive the following error:
Caught exception!
Response body:
object(stdClass)[6]
public 'errors' =>
array (size=1)
0 =>
object(stdClass)[7]
public 'category' => string 'INVALID_REQUEST_ERROR' (length=21)
public 'code' => string 'NOT_FOUND' (length=9)
public 'detail' => string 'Resource not found.' (length=19)
public 'field' => string 'card_nonce' (length=10)
Response headers:
array (size=12) 0 => string 'HTTP/1.1 404 Not Found' (length=22) 'Content-Type' => string 'application/json' (length=16) 'Vary' => string 'Accept-Encoding' (length=15) 'X-Content-Type-Options' => string 'nosniff' (length=7) 'X-Download-Options' => string 'noopen' (length=6) 'X-Frame-Options' => string 'SAMEORIGIN' (length=10) 'X-Permitted-Cross-Domain-Policies' => string 'none' (length=4) 'X-Xss-Protection' => string '1; mode=block' (length=13) 'Date' => string 'Sun, 12 Jun 2016 22:20:11 GMT' (length=29) 'Content-Length' => string '121' (length=3) 'Keep-Alive' => string 'timeout=60' (length=10) 'Strict-Transport-Security' => string 'max-age=631152000' (length=17)
However, I know the nonce was created since I received my nonce received alert in the previous page.
Sorry to hear about the trouble. I'll share this with our developer team and report back shortly. Thanks!
@tllewellyn From the logs, it seems the application used for the card nonce creation didn't match the one used for charge. but seems you got the issue addressed already. Could you let us know if there is anything else we can help with?
Square Community