PaymentechProcessor Class Reference

#include <paymentechprocessor.h>

List of all members.

Public Member Functions

 PaymentechProcessor ()

Protected Member Functions

virtual int buildCommon (QString &, const int, const int, const double, const int, QString &, QString, const QString &=QString::null, const QString &=QString::null)
virtual int doAuthorize (const int, const int, const double, const double, const bool, const double, const double, const int, QString &, QString &, int &, ParameterList &)
 Placeholder for subclasses to override.
virtual int doCharge (const int, const int, const double, const double, const bool, const double, const double, const int, QString &, QString &, int &, ParameterList &)
 This function actually does an Authorization then a Charge Preauth. Changes don't occurr real-time so we do the preauth real-time and if that succeeds just put the record in the correct state to be charged later. If the processor can't do the charge then the transaction must be undone.
virtual int doChargePreauthorized (const int, const int, const double, const int, QString &, QString &, int &, ParameterList &)
 Updated a previously created auth record as a charge with approved string "SUBMITTED" and a separate process will do the actuall processing of the charge updating the record appropriately. If the later processing fails then the appropriate step must be taken to undo any record money.
virtual int doCredit (const int, const int, const double, const double, const bool, const double, const double, const int, QString &, QString &, int &, ParameterList &)
 Create a credit record that will be processed later by a processor. If the processing fails then the record needs to undo any transactions.
virtual int doTestConfiguration ()
 Placeholder for subclasses to override.
virtual int doVoidPrevious (const int, const int, const double, const int, QString &, QString &, QString &, int &, ParameterList &)
 Placeholder for subclasses to override.
virtual int handleResponse (const QString &, const int, const QString &, const double, const int, QString &, QString &, int &, ParameterList &)
virtual bool handlesCreditCards ()
 Returns whether the subclass handles credit cards.

Constructor & Destructor Documentation

PaymentechProcessor::PaymentechProcessor (  ) 

Member Function Documentation

int PaymentechProcessor::buildCommon ( QString pordernum,
const int  pccardid,
const int  pcvv,
const double  pamount,
const int  pcurrid,
QString prequest,
QString  pordertype,
const QString pAuthcode = QString::null,
const QString pRespdate = QString::null 
) [protected, virtual]
int PaymentechProcessor::doAuthorize ( const int  pccardid,
const int  pcvv,
const double  pamount,
const double  ptax,
const bool  ptaxexempt,
const double  pfreight,
const double  pduty,
const int  pcurrid,
QString pneworder,
QString preforder,
int &  pccpayid,
ParameterList &   
) [protected, virtual]

Placeholder for subclasses to override.

See also:
authorize

Reimplemented from CreditCardProcessor.

int PaymentechProcessor::doCharge ( const int  pccardid,
const int  pcvv,
const double  pamount,
const double  ptax,
const bool  ptaxexempt,
const double  pfreight,
const double  pduty,
const int  pcurrid,
QString pneworder,
QString preforder,
int &  pccpayid,
ParameterList &  pparams 
) [protected, virtual]

This function actually does an Authorization then a Charge Preauth. Changes don't occurr real-time so we do the preauth real-time and if that succeeds just put the record in the correct state to be charged later. If the processor can't do the charge then the transaction must be undone.

Reimplemented from CreditCardProcessor.

int PaymentechProcessor::doChargePreauthorized ( const int  pccardid,
const int  pcvv,
const double  pamount,
const int  pcurrid,
QString pneworder,
QString preforder,
int &  pccpayid,
ParameterList &  pparams 
) [protected, virtual]

Updated a previously created auth record as a charge with approved string "SUBMITTED" and a separate process will do the actuall processing of the charge updating the record appropriately. If the later processing fails then the appropriate step must be taken to undo any record money.

Reimplemented from CreditCardProcessor.

int PaymentechProcessor::doCredit ( const int  pccardid,
const int  pcvv,
const double  pamount,
const double  ptax,
const bool  ptaxexempt,
const double  pfreight,
const double  pduty,
const int  pcurrid,
QString pneworder,
QString preforder,
int &  pccpayid,
ParameterList &  pparams 
) [protected, virtual]

Create a credit record that will be processed later by a processor. If the processing fails then the record needs to undo any transactions.

Reimplemented from CreditCardProcessor.

int PaymentechProcessor::doTestConfiguration (  )  [protected, virtual]

Placeholder for subclasses to override.

See also:
testConfiguration

Reimplemented from CreditCardProcessor.

int PaymentechProcessor::doVoidPrevious ( const int  pccardid,
const int  pcvv,
const double  pamount,
const int  pcurrid,
QString pneworder,
QString preforder,
QString papproval,
int &  pccpayid,
ParameterList &   
) [protected, virtual]

Placeholder for subclasses to override.

See also:
voidPrevious

Reimplemented from CreditCardProcessor.

int PaymentechProcessor::handleResponse ( const QString presponse,
const int  pccardid,
const QString ptype,
const double  pamount,
const int  pcurrid,
QString pneworder,
QString preforder,
int &  pccpayid,
ParameterList &  pparams 
) [protected, virtual]
bool PaymentechProcessor::handlesCreditCards (  )  [protected, virtual]

Returns whether the subclass handles credit cards.

Reimplemented from CreditCardProcessor.


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

Generated on Tue Apr 20 12:03:16 2010 xTuple ERP Programmer Reference, Version 3.5.0 doxygen 1.6.1