PHP Class PayPal\Core\PPAPIService

Show file Open project: paypal/sdk-core-php Class Usage Examples

Public Properties

Property Type Description
$apiContext
$apiMethod
$serviceName

Public Methods

Method Description
__construct ( $port, $serviceName, $serviceBinding, $apiContext, $handlers = [] )
addHandler ( IPPHandler $handler ) Register additional handlers to run before executing this call
makeRequest ( string $apiMethod, $request ) : array Execute an api call
setServiceName ( $serviceName )

Private Methods

Method Description
getOptions ( )
runHandlers ( $httpConfig, $request )

Method Details

__construct() public method

public __construct ( $port, $serviceName, $serviceBinding, $apiContext, $handlers = [] )

addHandler() public method

Register additional handlers to run before executing this call
public addHandler ( IPPHandler $handler )
$handler IPPHandler

makeRequest() public method

Execute an api call
public makeRequest ( string $apiMethod, $request ) : array
$apiMethod string Name of the API operation (such as 'Pay')
return array containing request and response

setServiceName() public method

public setServiceName ( $serviceName )

Property Details

$apiContext public property

public $apiContext

$apiMethod public property

public $apiMethod

$serviceName public property

public $serviceName