Table of Contents |
---|
Table of Contents |
---|
maxLevel | 4 |
---|
minLevel | 2 |
---|
outline | true |
---|
class | toc |
---|
|
|
Required Methods
Info |
---|
As of version 3.1 of Blesta, several of these required methods can be defined in a gateway configuration file instead. |
...
The getName() method simply returns the name of the methodgateway. It's always best to define any language in your gateway using language files (see Translating Blesta for more information).
...
Code Block |
---|
|
class MyGateway extends NonmerchantGateway {
...
public function getName() {
return Language::_("MyGateway.name", true);
}
...
} |
getDescription()
The getDescription() method simply returns the description of the gateway. It's always best to define any language in your gateway using language files (see Translating Blesta for more information).
Info |
---|
This method was added in Blesta v4.9.0 and can be defined in a gateway configuration file instead. |
Code Block |
---|
|
class MyGateway extends NonmerchantGateway {
...
public function getDescription() {
return Language::_("MyGateway.description", true);
}
...
} |
getVersion()
...