IQnection\Payment\OfflinePayment
Synopsis
class OfflinePayment
extends Payment
{
- // Inherited constants from Payment
- const STATUS_PENDING = 'Pending';
- const STATUS_FAILED = 'Failed';
- const STATUS_DECLINED = 'Declined';
- const STATUS_SUCCESS = 'Success';
- // members
- private static string $table_name = 'OfflinePayment';
- private static string $PaymentMethod = 'Offline Payment';
- // methods
- public void Process()
- // Inherited methods from Payment
- public void getCMSFields()
- public void getPaidObject()
- public void setPaidObject()
- public void PaymentFields()
- public void PaymentRequiredFields()
- public void ValidateSubmission()
- public void Process()
- public void PaymentMethodTitle()
- public void OnSuccessfulPayment()
- public void canCreate()
- public void canDelete()
- public void canEdit()
- public void canView()
- public void Method()
Hierarchy
Extends
Constants
Name | Value |
---|---|
STATUS_PENDING | 'Pending' |
STATUS_FAILED | 'Failed' |
STATUS_DECLINED | 'Declined' |
STATUS_SUCCESS | 'Success' |
Members
private
- $PaymentMethod
- $table_name
Methods
public
Inherited from IQnection\Payment\Payment
public
- Method()
- OnSuccessfulPayment()
- PaymentFields() — Builds the form fields needed for payment fields should be returned in an array to ba parsed and added to the page's form
- PaymentMethodTitle()
- PaymentRequiredFields()
- Process() — the process method should validate the payment and process it with any 3rd party upon success, write the payment object to the database
- ValidateSubmission() — checks the submission and makes sure all values are good before processing the payment this method should be called from the form handler.
- canCreate()
- canDelete()
- canEdit()
- canView()
- getCMSFields()
- getPaidObject()
- setPaidObject()