eZPublishCommunityProject(LegacyStack)  2013.5
eZPaymentCallbackChecker Class Reference

Routines for support callback(postbacks) in redirectional payment gateways. More...

Public Member Functions

 approvePayment ($continueWorkflow=true)
 
 buildRequestString ()
 
 checkAmount ($amount)
 
 checkCurrency ($currency)
 
 checkDataField ($field, $value)
 
 checkServerIP ()
 
 continueWorkflow ()
 
 createDataFromGET ()
 
 createDataFromPOST ()
 
 eZPaymentCallbackChecker ($iniFile)
 
 getFieldValue ($field)
 
 handleResponse ($socket)
 
 requestValidation ()
 
 sendPOSTRequest ($server, $port, $serverMethod, $request, $timeout=30)
 
 setupOrderAndPaymentObject ($orderID)
 

Public Attributes

 $callbackData
 
 $ini
 
 $logger
 
 $order
 
 $paymentObject
 

Detailed Description

Routines for support callback(postbacks) in redirectional payment gateways.

Member Function Documentation

eZPaymentCallbackChecker::approvePayment (   $continueWorkflow = true)

Approves payment and continues workflow.

eZPaymentCallbackChecker::buildRequestString ( )

Postback request which will be sent to payment server.

eZPaymentCallbackChecker::checkAmount (   $amount)

Simple amount checking.

eZPaymentCallbackChecker::checkCurrency (   $currency)

Simple currency checking. It's up to the payment solution to use the currency that are set in the product collection for the order.

eZPaymentCallbackChecker::checkDataField (   $field,
  $value 
)
eZPaymentCallbackChecker::checkServerIP ( )

Reads ip list from ini file and searches in it server's ip.

eZPaymentCallbackChecker::continueWorkflow ( )

Continues workflow.

Referenced by approvePayment().

eZPaymentCallbackChecker::createDataFromGET ( )

Parses 'GET' response and create array with received data.

eZPaymentCallbackChecker::createDataFromPOST ( )

Parses 'POST' response and create array with received data.

eZPaymentCallbackChecker::eZPaymentCallbackChecker (   $iniFile)

Constructor.

eZPaymentCallbackChecker::getFieldValue (   $field)

Returns value of specified field.

eZPaymentCallbackChecker::handleResponse (   $socket)

Handles server response.

Referenced by sendPOSTRequest().

eZPaymentCallbackChecker::requestValidation ( )

Asks paypal's server to validate callback.

eZPaymentCallbackChecker::sendPOSTRequest (   $server,
  $port,
  $serverMethod,
  $request,
  $timeout = 30 
)

Sends POST request.

eZPaymentCallbackChecker::setupOrderAndPaymentObject (   $orderID)

Creates order and payment objects by orderID. After this 'checkAmount', 'checkCurrency' can be called.

Member Data Documentation

eZPaymentCallbackChecker::$callbackData
eZPaymentCallbackChecker::$ini
eZPaymentCallbackChecker::$logger
eZPaymentCallbackChecker::$order
eZPaymentCallbackChecker::$paymentObject

The documentation for this class was generated from the following file: