ZenMagick 0.9.8


org.zenmagick.store.model.checkout.ZMPaymentType
\store\model\checkout\ZMPaymentType.php at line 34

Class ZMPaymentType

ZMObject
└─ZMPaymentType

public class ZMPaymentType
extends ZMObject

A single payment type including all required information and settings.

Author:
DerManoMann
Version:
$Id: ZMPaymentType.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMPaymentType(int id, string name, string instructions)

Create a new payment type.

Method Summary
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
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\model\checkout\ZMPaymentType.php at line 49

ZMPaymentType

public ZMPaymentType(int id, string name, string instructions)

Create a new payment type.

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

Method Detail

\store\model\checkout\ZMPaymentType.php at line 110

addField

public void addField(ZMPaymentField field)

Add a form field to this payment type.

Parameters:
field - The new form field.

\store\model\checkout\ZMPaymentType.php at line 96

getError

public string getError()

Get the payment error (if any).

Returns:
The payment error message.

\store\model\checkout\ZMPaymentType.php at line 103

getFields

public array getFields()

Get the payment form fields.

Returns:
A list of ZMPaymentField instances.

\store\model\checkout\ZMPaymentType.php at line 71

getId

public int getId()

Get the payment type id.

Returns:
The payment type id.

\store\model\checkout\ZMPaymentType.php at line 89

getInstructions

public string getInstructions()

Get the optional payment instructions.

This may contain HTML, depending on the module.

Returns:
Payment instructions.

\store\model\checkout\ZMPaymentType.php at line 80

getName

public string getName()

Get the payment name.

This may contain HTML, depending on the module.

Returns:
The payment name.

ZenMagick 0.9.8