ZenMagick 0.9.10


zenmagick.store.shared.model.checkout\ZMPaymentType
model\checkout\ZMPaymentType.php at line 33

Class ZMPaymentType

ZMObject
└─ZMPaymentType

public class ZMPaymentType
extends ZMObject

A single payment type including all required information and settings.

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct(int id, string name, string instructions)

Create a new payment type.

void

addField(ZMPaymentField field)

Add a form field to this payment type.

string

getError()

Get the payment error (if any).

array

getFields()

Get the payment form fields.

int

getId()

Get the payment type id.

string

getInstructions()

Get the optional payment instructions.

string

getName()

Get the payment name.

Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

model\checkout\ZMPaymentType.php at line 48

__construct

public void __construct(int id, string name, string instructions)

Create a new payment type.

Parameters:
id - The id.
name - The name.
instructions - Optional instructions.

model\checkout\ZMPaymentType.php at line 109

addField

public void addField(ZMPaymentField field)

Add a form field to this payment type.

Parameters:
field - The new form field.

model\checkout\ZMPaymentType.php at line 95

getError

public string getError()

Get the payment error (if any).

Returns:
The payment error message.

model\checkout\ZMPaymentType.php at line 102

getFields

public array getFields()

Get the payment form fields.

Returns:
A list of ZMPaymentField instances.

model\checkout\ZMPaymentType.php at line 70

getId

public int getId()

Get the payment type id.

Returns:
The payment type id.

model\checkout\ZMPaymentType.php at line 88

getInstructions

public string getInstructions()

Get the optional payment instructions.

This may contain HTML, depending on the module.

Returns:
Payment instructions.

model\checkout\ZMPaymentType.php at line 79

getName

public string getName()

Get the payment name.

This may contain HTML, depending on the module.

Returns:
The payment name.

ZenMagick 0.9.10