ePages 7.28.0 - DE_EPAGES/Payment/API/Object/PaymentType.pm

Package DE_EPAGES::Payment::API::Object::PaymentType

object interface for PaymentType.

Base
DE_EPAGES::Shop::API::Object::ShopObject

Functions

canCreateAdditionalPaymentMethod
className
dbPackage
isUsable
newPaymentMethod

canCreateAdditionalPaymentMethod

check if it is possible to create an additional payment method of this type. By default this will be true. It have to be overidden if a payment type support only one payment method.

Syntax
canCreateAdditionalPaymentMethod( $Shop );
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
epages shop object
Return
(boolean)
always true

className

Returns the class name, used for DAL access.

Syntax
$ClassName = $PaymentType->className;
Return
$ClassName (String)
class name

dbPackage

Returns the database package, used for DAL access.

Syntax
$DbPackage = $PaymentType->dbPackage;
Return
$DbPackage (String)
database package name

isUsable

returns if this paymenttype can be used in this shop

Syntax
isUsable( $Shop );
Input
$Shop (object)
Shop object
Return
$ReturnVariable (boolean)
true if this paymenttype can be used

newPaymentMethod

Creates a new payment method with the given parameters.

Syntax
my $PaymentMethod = $PaymentType->newPaymentMethod($Shop, $hInfo);
Input
$Shop (object)
shop
$hInfo (ref.hash)
hash with attribute value for the new payment method,
for example: { 'Alias' => $NewAlias }
Return
$PaymentMethod (object)
payment method