Source for file dodirectpayment.php
Documentation is available at dodirectpayment.php
* This class is used to perform the DoDirectPayment operation
* @author Israel Ekpo <perfectvista@users.sourceforge.net>
* @copyright Copyright 2007, Israel Ekpo
* @license http://phppaypalpro.sourceforge.net/LICENSE.txt BSD License
* @package DoDirectPayment
* Used to invoke the DoDirectPayment Operation
* @author Israel Ekpo <perfectvista@users.sourceforge.net>
* @copyright Copyright 2007, Israel Ekpo
* @license http://phppaypalpro.sourceforge.net/LICENSE.txt BSD License
* @package DoDirectPayment
* Message Sent to the Webservice
* Prepares the message to be sent
* This method prepares the message to be sent to the
* @param string $PaymentAction
* @param PaymentDetailsType $PaymentDetails
* @param CreditCardDetailsType $CreditCard
* @param string $IPAddress
* @param string $MerchantSessionId
public function setParams($PaymentAction, $PaymentDetails, $CreditCard, $IPAddress, $MerchantSessionId)
* Adds Item to the Payment Details
* @param integer $Quantity
* @param string $currencyID
public function addPaymentItem($Name =
'', $Number =
'', $Quantity =
1, $Tax =
'', $Amount =
'', $currencyID =
'USD')
* Executes the DoDirectPayment Operation
* Prepares the final message and the calls the Webservice operation. If it is successfull the response is registered
* and the OperationStatus is set to true, otherwise the Operation status will be set to false and an Exception of the type
* soapFault will be registered instead.
$this->apiMessage['DoDirectPaymentRequestDetails'] =
$this->apiMessage;
$this->apiMessage =
array('DoDirectPaymentRequest' =>
$this->apiMessage);
$this->apiMessage =
array($this->apiMessage);
parent::registerAPIResponse(PayPalBase::getSoapClient()->__soapCall('DoDirectPayment', $this->apiMessage, null, PayPalBase::getSoapHeader()));
catch (SoapFault $Exception)
parent::registerAPIException($Exception);
Documentation generated on Sat, 03 Feb 2007 20:58:59 -0800 by phpDocumentor 1.3.1