Closed AndanteC closed 10 years ago
Hi Adante,
The $response
variable from HttpSocket is actually an object, and does not contain code
(code is the HTTP status code from PayPal's server).
It looks like you're debugging $responseArray
.
If you're not getting a 200 response, there IS an issue connecting to PayPal - try debugging $response
to see why. We've had a few 500 Internal Server Errors recently when using their sandbox :frowning:
Did you establish if this was just an issue with sandbox.paypal.com?
Hi,
Just find out function storeCreditCard() isn't working with my test application:
if ($response->code == 200)
code to test what the response was like:*seems like there is no such field called "code" in the response JSON.