PHP Class Vdp\VisaAPIClient

显示文件 Open project: visa/SampleCode

Public Methods

Method Description
__construct ( )
doMutualAuthCall ( $method, $path, $testInfo, $requestBodyString, $inputHeaders = [] )
doXPayTokenCall ( $method, $baseUrl, $resource_path, $query_string, $testInfo, $requestBodyString, $inputHeaders = [] )

Private Methods

Method Description
getBasicAuthHeader ( $userId, $password )
getCorrelationId ( ) * Correlation Id ( x-correlation-id ) is an optional header while making an API call. You can skip passing the header while calling the API's.
loggingHelper ( $response, $curl, $testInfo, $requestBody )

Method Details

__construct() public method

public __construct ( )

doMutualAuthCall() public method

public doMutualAuthCall ( $method, $path, $testInfo, $requestBodyString, $inputHeaders = [] )

doXPayTokenCall() public method

public doXPayTokenCall ( $method, $baseUrl, $resource_path, $query_string, $testInfo, $requestBodyString, $inputHeaders = [] )