ePages 6.17.15 - DE_EPAGES/ExternalPayment/API/PaymentTypeMethods.pm

Package DE_EPAGES::ExternalPayment::API::PaymentTypeMethods

Helper functions to manage PaymentTypeMethod (Visa, Master Card, ...) for those PaymentMethods of class 'Payment Service Providers'

@EXPORT_OK
GetPaymentTypeMethodsGroups
GetSelectedPaymentTypeMethodID
GetSelectedPaymentTypeMethod

Functions

GetPaymentTypeMethodsGroups
GetSelectedPaymentTypeMethod
GetSelectedPaymentTypeMethodID

GetPaymentTypeMethodsGroups

Returns the available PaymentType methods groups configured in a PaymentType.

Syntax
my $PaymentTypeMethodsGroups = GetPaymentTypeMethodsGroups( $PaymentType, $LanguageID );
Input
$PaymentType (object)
The PaymentType to retrieve its items
$LanguageID (string)
The language ID to use to retrieve the name/description of the items
Return
$aResult (ref.array)
Array of PaymentTypeMethodsGroups (hash items) with the fields:
  • Name: of the PaymentTypeMethodsGroup
  • PaymentTypeMethods: Array of PaymentTypeMethods:

    • Name: of the PaymentTypeMethod
    • ID: of the PaymentTypeMethod

GetSelectedPaymentTypeMethod

Returns the selected PaymentTypeMethod for a specific PaymentMethod

Syntax
my $SelectdPaymentTypeMethod = GetSelectedPaymentTypeMethod( $PaymentMethod );
Input
$PaymentMethod (object)
A PaymentMethod object to get its PaymentTypeMethod
Return
$PaymentTypeMethod (object)
The selected PaymentTypeMethod object

GetSelectedPaymentTypeMethodID

Returns the ID of the selected PaymentTypeMethod for a specific PaymentMethod

Syntax
my $PaymentTypeMethodID = GetSelectedPaymentTypeMethodID( $PaymentMethod );
Input
$PaymentMethod (object)
A PaymentMethod object to get its PaymentTypeMethodID
Return
$ID (integer)
The PaymentTypeMethod ID