Source for file doexpresscheckoutpayment.php
Documentation is available at doexpresscheckoutpayment.php
* DoExpressCheckoutPayment Object
* This class is used to perform the DoExpressCheckoutPayment operation
* @author Israel Ekpo <perfectvista@users.sourceforge.net>
* @copyright Israel Ekpo, 2006-2007
* @license http://phppaypalpro.sourceforge.net/LICENSE.txt BSD License
* @package ExpressCheckout
* Used to invoke the DoExpressCheckoutPayment Operation
* @author Israel Ekpo <perfectvista@users.sourceforge.net>
* @copyright Copyright 2007, Israel Ekpo
* @license http://phppaypalpro.sourceforge.net/LICENSE.txt BSD License
* @package ExpressCheckout
* 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 string $PaymentDetails
public function setParams($PaymentAction, $Token, $PayerID, $PaymentDetails)
* 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 DoExpressCheckoutPayment 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['DoExpressCheckoutPaymentRequestDetails'] =
$this->apiMessage;
$this->apiMessage =
array('DoExpressCheckoutPaymentRequest' =>
$this->apiMessage);
$this->apiMessage =
array($this->apiMessage);
parent::registerAPIResponse(PayPalBase::getSoapClient()->__soapCall('DoExpressCheckoutPayment', $this->apiMessage, null, PayPalBase::getSoapHeader()));
catch (SoapFault $Exception)
parent::registerAPIException($Exception);
Documentation generated on Sat, 03 Feb 2007 20:59:00 -0800 by phpDocumentor 1.3.1