Skip to content

Metadata Parameters

The metadata function allows you to define module related capabilities and settings.

Payment Gateway Modules support the following metadata configuration parameters.

NameTypeSupported As OfDefaultDescription
DisplayNameString6.0Module NameAn alternate display name that will be used instead of the filename if defined
APIVersionString5.21.1Defines API Version the module uses. Use 1.1 unless you have a need specific to use 1.0
gatewayTypeString8.0undefinedThis should be set to 'Bank' if the module is a Bank module, or the metadata should be omitted.
failedEmailString7.7Credit Card Payment FailedThe name of an email template to send should a payment capture fail
successEmailString7.7Credit Card Payment ConfirmationThe name of an email template to send should a payment capture be successful
pendingEmailString7.7Credit Card Payment PendingThe name of an email template to send should a payment capture be pending

Example

function yourmodulename_MetaData()
{
    return [
        'DisplayName' => 'Your Module Name',
        'gatewayType' => 'Bank', // Only set if the module is a Bank Module
        'failedEmail' => 'Credit Card Payment Failed',
        'successEmail' => 'Custom Credit Card Payment Template', // You can utilise custom templates here
        'pendingEmail' => 'Custom Credit Card Pending Template',
        'APIVersion' => '1.1', // Use API Version 1.1
    ];
}