PayPal\Service\AdaptivePaymentsService::GetPrePaymentDisclosure PHP Method

GetPrePaymentDisclosure() public method

Service Call: GetPrePaymentDisclosure
public GetPrePaymentDisclosure ( GetPrePaymentDisclosureRequest $getPrePaymentDisclosureRequest, mixed $apiCredential = NULL ) : Types\AP\GetPrePaymentDisclosureResponse
$getPrePaymentDisclosureRequest GetPrePaymentDisclosureRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
return Types\AP\GetPrePaymentDisclosureResponse
    public function GetPrePaymentDisclosure($getPrePaymentDisclosureRequest, $apiCredential = NULL)
    {
        $ret = new GetPrePaymentDisclosureResponse();
        $apiContext = new PPApiContext($this->config);
        $handlers = array(new PPPlatformServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
        $resp = $this->call('AdaptivePayments', 'GetPrePaymentDisclosure', $getPrePaymentDisclosureRequest, $apiContext, $handlers);
        $ret->init(PPUtils::nvpToMap($resp));
        return $ret;
    }