Class DoDirectPayment

Description

Used to invoke the DoDirectPayment Operation

Located in /dodirectpayment.php (line 25)

PaypalAPI
   |
   --DoDirectPayment
Method Summary
 void addPaymentItem ([string $Name = ''], [float $Number = ''], [integer $Quantity = 1], [float $Tax = ''], [float $Amount = ''], [string $currencyID = 'USD'])
 void execute ()
 void setParams (string $PaymentAction, PaymentDetailsType $PaymentDetails, CreditCardDetailsType $CreditCard, string $IPAddress, string $MerchantSessionId)
Methods
addPaymentItem (line 63)

Adds Item to the Payment Details

void addPaymentItem ([string $Name = ''], [float $Number = ''], [integer $Quantity = 1], [float $Tax = ''], [float $Amount = ''], [string $currencyID = 'USD'])
  • string $Name
  • float $Number
  • integer $Quantity
  • float $Tax
  • float $Amount
  • string $currencyID
execute (line 78)

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.

  • access: public
  • throws: SoapFault
void execute ()
setParams (line 48)

Prepares the message to be sent

This method prepares the message to be sent to the Paypal Webservice

  • access: public
void setParams (string $PaymentAction, PaymentDetailsType $PaymentDetails, CreditCardDetailsType $CreditCard, string $IPAddress, string $MerchantSessionId)
  • string $PaymentAction
  • PaymentDetailsType $PaymentDetails
  • CreditCardDetailsType $CreditCard
  • string $IPAddress
  • string $MerchantSessionId

Inherited Methods

Inherited From PaypalAPI

 PaypalAPI::getAPIException()
 PaypalAPI::getAPIResponse()
 PaypalAPI::success()

Documentation generated on Sat, 03 Feb 2007 20:58:59 -0800 by phpDocumentor 1.3.1