ZenMagick 0.9.1


org.zenmagick.service.ZMPayments

Class ZMPayments

ZMObject
|
+--ZMPayments

public class ZMPayments
extends ZMObject

Payments.

Author:
mano
Version:
$Id: ZMPayments.php 957 2008-03-30 21:03:12Z DerManoMann $

Constructor Summary

ZMPayments()

Create new instance.

Method Summary
array

getPaymentTypes()

Get the available payment types.

string

getPaymentsJavaScript(boolean echo)

Generate the JavaScript for the payment form validation.

ZMPaymentType

getSelectedPaymentType()

Get the selected payment type.

void

getZenModules()

Get the zen-cart payment modules.

static void

instance()

Get instance.

Methods inherited from org.zenmagick.ZMObject
backtrace, create, log, singleton

Constructor Detail

ZMPayments

public ZMPayments()

Create new instance. /


Method Detail

getPaymentTypes

public array getPaymentTypes()

Get the available payment types.

Returns:
List of ZMPaymentType instances.

getPaymentsJavaScript

public string getPaymentsJavaScript(boolean echo)

Generate the JavaScript for the payment form validation.

Parameters:
echo - If true, echo the code.
Returns:
Fully formatted JavaScript incl. of wrapping <script> tag.

getSelectedPaymentType

public ZMPaymentType getSelectedPaymentType()

Get the selected payment type.

Returns:
The payment type or null.

getZenModules

public void getZenModules()

Get the zen-cart payment modules. /


instance

public static void instance()

Get instance. /


ZenMagick 0.9.1