Metadata Parameters
The metadata function allows you to define module related capabilities and settings.
Payment Gateway Modules support the following metadata configuration parameters.
Name | Type | Notes |
---|---|---|
DisplayName | String | An alternate display name that will be used instead of the filename if defined |
APIVersion | String | Defines API Version the module uses. Use 1.1 unless you have a need specific to use 1.0 |
gatewayType | String | This should be set to ‘Bank’ if the module is a Bank module, or the metadata should be omitted. |
DisableLocalCredtCardInput | bool | true/false for Disable Local Credit Card Input Storage |
TokenisedStorage | bool | true/false for Tokenised Storage |
failedEmail | String | The name of an email template to send should a payment capture fail |
successEmail | String | The name of an email template to send should a payment capture be successful |
pendingEmail | String | The name of an email template to send should a payment capture be pending |
LogoUrl | String | Gateway Logo URL |
Example
<?php
function yourmodulename_MetaData()
{
return [
"DisplayName"=>"Your Module Name",
"gatewayType"=>"Bank", // Only set if the module is a Bank Module
"APIVersion"=>"1.0", // Use API Version 1.0
"failedEmail"=>"Credit Card Payment Failed",
"successEmail"=>"Custom Credit Card Payment Template", // You can utilise custom templates here
"pendingEmail"=>"Custom Credit Card Pending Template",
];
}