ZenMagick 0.9.6


org.zenmagick.model.checkout.ZMPaymentType

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 954 2008-03-29 10:12:29Z DerManoMann $

Fields inherited from org.zenmagick.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.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

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

addField

public void addField(ZMPaymentField field)

Add a form field to this payment type.

Parameters:
field - The new form field.

getError

public string getError()

Get the payment error (if any).

Returns:
The payment error message.

getFields

public array getFields()

Get the payment form fields.

Returns:
A list of ZMPaymentField instances.

getId

public int getId()

Get the payment type id.

Returns:
The payment type id.

getInstructions

public string getInstructions()

Get the optional payment instructions.

This may contain HTML, depending on the module.

Returns:
Payment instructions.

getName

public string getName()

Get the payment name.

This may contain HTML, depending on the module.

Returns:
The payment name.

ZenMagick 0.9.6