Method | Description | |
---|---|---|
__construct ( $config = null ) | * Takes user configuration array as input Takes configuration for API call or IPN config | |
getCurlResponseInfo ( ) | * Get the output of Curl Getinfo | |
httpGet ( $url, $userAgent = null ) | * GET using curl for the following situations 1. IPN certificate retrieval 2. Get User Info | |
httpPost ( $url, $userAgent = null, $parameters = null ) | * POST using curl for the following situations 1. API calls 2. IPN certificate retrieval 3. Get User Info | |
setAccessToken ( $accesstoken ) | * Setter for Access token to get the user info | |
setHttpHeader ( ) | * Setter for boolean header to get the user info |
Method | Description | |
---|---|---|
commonCurlParams ( $url, $userAgent ) | * Add the common Curl Parameters to the curl handler $ch Also checks for optional parameters if provided in the config config['cabundle_file'] config['proxy_port'] config['proxy_host'] config['proxy_username'] config['proxy_password'] | |
execute ( $ch ) | * Execute Curl request |
public __construct ( $config = null ) |
public httpGet ( $url, $userAgent = null ) |
public httpPost ( $url, $userAgent = null, $parameters = null ) |
public setAccessToken ( $accesstoken ) |
public setHttpHeader ( ) |