eZPaymentObject class
This is a helper class for processing payments for gateways which supports redirection to a
payment site.
Data
Methods
createNew(workflowProcessID: int, orderID: int, paymentType: string): eZPaymentObject
Static.
Parameters
workflowProcessID - identifier of workflow process;
orderID - identifier of order;
paymentType - description of payment gateway(PayPal, PayNet, etc);
Returns
New instance of eZPaymentObject class.
approve()
Approves payment.
Parameters
Returns
approved()
Parameters
Returns
TRUE if payment was approved.
fetchByID(id:int)
Static.
Parameters
Returns
an instance of eZPaymentObject by given id.
fetchByOrderID(orderID:int)
Static.
Parameters
Returns
an instance of eZPaymentObject by given orderID.
fetchByProcessID(processID:int)
Static.
Parameters
Returns
an instance of eZPaymentObject by given processID.
continueWorkflow(workflowProcessID:int)
Static. Continues workflow by given workflowProcessID.
Parameters
Returns