The implementation of CyberSource-specific credit card handling. More...
#include <cybersourceprocessor.h>
Public Member Functions | |
CyberSourceProcessor () | |
virtual | ~CyberSourceProcessor () |
Protected Attributes | |
QDomDocument * | _doc |
QDomElement | _requestMessage |
Protected Member Functions | |
virtual int | buildCommon (const int pccardid, const int pcvv, const double pamount, const int pcurrid, QString &pneworder, QString &preforder, const CCTransaction ptranstype) |
virtual int | doAuthorize (const int pccardid, const int pcvv, 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) |
Placeholder for subclasses to override. | |
virtual int | 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) |
Placeholder for subclasses to override. | |
virtual int | doChargePreauthorized (const int pccardid, const int pcvv, const double pamount, const int pcurrid, QString &pneworder, QString &preforder, int &pccpayid, ParameterList &pparams) |
Placeholder for subclasses to override. | |
virtual int | 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) |
Placeholder for subclasses to override. | |
virtual int | doReverseAuthorize (const int pccardid, const double pamount, const int pcurrid, QString &pneworder, QString &preforder, int &pccpayid, ParameterList &pparams) |
virtual int | doTestConfiguration () |
Placeholder for subclasses to override. | |
virtual int | doVoidPrevious (const int pccardid, const int pcvv, const double pamount, const int pcurrid, QString &pneworder, QString &preforder, QString &papproval, int &pccpayid, ParameterList &pparams) |
Placeholder for subclasses to override. | |
virtual int | handleResponse (const QString &presponse, const int pccardid, const CCTransaction ptype, double &pamount, const int pcurrid, QString &pneworder, QString &preforder, int &pccpayid, ParameterList &pparams) |
virtual bool | handlesCreditCards () |
Returns whether the subclass handles credit cards. | |
virtual QVariant | xqresult (QXmlQuery *xq, QString query, QVariant::Type type=QVariant::String) |
Return the result of extracting a given value from an XML response from CyberSource. |
The implementation of CyberSource-specific credit card handling.
CyberSourceProcessor::~CyberSourceProcessor | ( | ) | [virtual] |
int CyberSourceProcessor::buildCommon | ( | const int | pccardid, |
const int | pcvv, | ||
const double | pamount, | ||
const int | pcurrid, | ||
QString & | pneworder, | ||
QString & | preforder, | ||
const CCTransaction | ptranstype | ||
) | [protected, virtual] |
int CyberSourceProcessor::doAuthorize | ( | const int | pccardid, |
const int | pcvv, | ||
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] |
int CyberSourceProcessor::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 & | |||
) | [protected, virtual] |
int CyberSourceProcessor::doChargePreauthorized | ( | const int | pccardid, |
const int | pcvv, | ||
const double | pamount, | ||
const int | pcurrid, | ||
QString & | pneworder, | ||
QString & | preforder, | ||
int & | pccpayid, | ||
ParameterList & | |||
) | [protected, virtual] |
Placeholder for subclasses to override.
Reimplemented from CreditCardProcessor.
int CyberSourceProcessor::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 & | |||
) | [protected, virtual] |
int CyberSourceProcessor::doReverseAuthorize | ( | const int | pccardid, |
const double | pamount, | ||
const int | pcurrid, | ||
QString & | pneworder, | ||
QString & | preforder, | ||
int & | pccpayid, | ||
ParameterList & | pparams | ||
) | [protected, virtual] |
int CyberSourceProcessor::doTestConfiguration | ( | ) | [protected, virtual] |
Placeholder for subclasses to override.
Reimplemented from CreditCardProcessor.
int CyberSourceProcessor::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.
Reimplemented from CreditCardProcessor.
int CyberSourceProcessor::handleResponse | ( | const QString & | presponse, |
const int | pccardid, | ||
const CCTransaction | ptype, | ||
double & | pamount, | ||
const int | pcurrid, | ||
QString & | pneworder, | ||
QString & | preforder, | ||
int & | pccpayid, | ||
ParameterList & | pparams | ||
) | [protected, virtual] |
bool CyberSourceProcessor::handlesCreditCards | ( | ) | [protected, virtual] |
Returns whether the subclass handles credit cards.
Reimplemented from CreditCardProcessor.
QVariant CyberSourceProcessor::xqresult | ( | QXmlQuery * | xq, |
QString | query, | ||
QVariant::Type | type = QVariant::String |
||
) | [protected, virtual] |
Return the result of extracting a given value from an XML response from CyberSource.
The input query can specify a full or relative path within the XML stream. If it starts with a slash ('/') then it's treated as a full path. Otherwise it's treated as a relative path with respect to soap:Envelope/soap
:Body/c:replyMessage
Queries with relative paths always return the text() value. Queries with full paths must completely specify what they want returned. In either case, the query is wrapped with namespace handling.
The xq parameter is expected to be an initialized QXmlQuery with focus already set on the XML to be queried.
QDomDocument* CyberSourceProcessor::_doc [protected] |
QDomElement CyberSourceProcessor::_requestMessage [protected] |
Generated on Mon Jan 23 2012 12:22:32 | xTuple ERP Programmer Reference, Version 3.8.0 | 1.7.6.1 |