Recommend this page to a friend! |
Classes of Ujah Chigozie peter | PHP Payment Gateway Library | docs/RESPONSE.md | Download |
|
DownloadRESPONSEThe api response handling method Get the original response object. return the original response object or null if not available.
Get the response headers. return array of request response headers.
Get a specific header by key. return mixed value of header or null if not found.
Get the HTTP status code. return int, the request response HTTP status code or 0 if not failed.
Check if the response is successful from gateway.
Check if the network request failed or server doesn't respond with status code
Get a response object body returned from gateway
Get the response data portion of the gateway response.
Get the message from gateway response body.
Get the error object from gateway response.
Get the error message from gateway response.
Get the error code from the response.
|