Api\ServiceType\ApiDo::DoDirectPayment PHP Method

DoDirectPayment() public method

Method to call the operation originally named DoDirectPayment Meta informations extracted from the WSDL - SOAPHeaderNames : RequesterCredentials - SOAPHeaderNamespaces : urn:ebay:api:PayPalAPI - SOAPHeaderTypes : \Api\StructType\ApiCustomSecurityHeaderType - SOAPHeaders : required
public DoDirectPayment ( Api\StructType\ApiDoDirectPaymentReq $doDirectPaymentRequest ) : Api\StructType\ApiDoDirectPaymentResponseType | boolean
$doDirectPaymentRequest Api\StructType\ApiDoDirectPaymentReq
return Api\StructType\ApiDoDirectPaymentResponseType | boolean
    public function DoDirectPayment(\Api\StructType\ApiDoDirectPaymentReq $doDirectPaymentRequest)
    {
        try {
            $this->setResult(self::getSoapClient()->DoDirectPayment($doDirectPaymentRequest));
            return $this->getResult();
        } catch (\SoapFault $soapFault) {
            $this->saveLastError(__METHOD__, $soapFault);
            return false;
        }
    }