Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents
Table of Contents
maxLevel4
minLevel2
outlinetrue
classtoc

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
languagephp
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
languagephp
class MyGateway extends NonmerchantGateway {
...
	public function getDescription() {
		return Language::_("MyGateway.description", true);
	}
...
}

getVersion()

...