Skip to content

Instantly share code, notes, and snippets.

@alvaroseparovich
Last active August 29, 2017 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvaroseparovich/243580e8a11d41984d062c895dccb35e to your computer and use it in GitHub Desktop.
Save alvaroseparovich/243580e8a11d41984d062c895dccb35e to your computer and use it in GitHub Desktop.
Log De erro Pagar.me cartão no checkout comum
08-29-2017 @ 17:18:28 - Doing a transaction for order 13728...
08-29-2017 @ 17:18:29 - Failed to make the transaction: Array
(
[headers] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[date] => Tue, 29 Aug 2017 20:18:29 GMT
[content-type] => application/json
[content-length] => 172
[server] => openresty
[access-control-allow-credentials] => true
[access-control-allow-headers] => Content-Type, Authorization, X-Requested-With, X-HTTP-Method-Override
[access-control-allow-methods] => GET,PUT,POST,DELETE
[access-control-allow-origin] => *
[charset] => utf-8
[x-powered-by] => Express
[x-response-time] => 31ms
)
)
[body] => {"errors":[{"parameter_name":"customer[document_number]","type":"invalid_parameter","message":"número do documento está faltando"}],"url":"/transactions","method":"post"}
[response] => Array
(
[code] => 400
[message] => Bad Request
)
[cookies] => Array
(
)
[filename] =>
[http_response] => WP_HTTP_Requests_Response Object
(
[response:protected] => Requests_Response Object
(
[body] => {"errors":[{"parameter_name":"customer[document_number]","type":"invalid_parameter","message":"número do documento está faltando"}],"url":"/transactions","method":"post"}
[raw] => HTTP/1.1 400 Bad Request
Date: Tue, 29 Aug 2017 20:18:29 GMT
Content-Type: application/json
Content-Length: 172
Connection: close
Server: openresty
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With, X-HTTP-Method-Override
Access-Control-Allow-Methods: GET,PUT,POST,DELETE
Access-Control-Allow-Origin: *
Charset: utf-8
X-Powered-By: Express
X-Response-Time: 31ms
{"errors":[{"parameter_name":"customer[document_number]","type":"invalid_parameter","message":"número do documento está faltando"}],"url":"/transactions","method":"post"}
[headers] => Requests_Response_Headers Object
(
[data:protected] => Array
(
[date] => Array
(
[0] => Tue, 29 Aug 2017 20:18:29 GMT
)
[content-type] => Array
(
[0] => application/json
)
[content-length] => Array
(
[0] => 172
)
[server] => Array
(
[0] => openresty
)
[access-control-allow-credentials] => Array
(
[0] => true
)
[access-control-allow-headers] => Array
(
[0] => Content-Type, Authorization, X-Requested-With, X-HTTP-Method-Override
)
[access-control-allow-methods] => Array
(
[0] => GET,PUT,POST,DELETE
)
[access-control-allow-origin] => Array
(
[0] => *
)
[charset] => Array
(
[0] => utf-8
)
[x-powered-by] => Array
(
[0] => Express
)
[x-response-time] => Array
(
[0] => 31ms
)
)
)
[status_code] => 400
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://api.pagar.me/1/transactions
[history] => Array
(
)
[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
)
)
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment