PHP Class Markette\Gopay\Service\AbstractService

Inheritance: extends Nette\Object
ファイルを表示 Open project: markette/gopay

Protected Properties

Property Type Description
$allowedLang array
$changeChannel boolean
$channels array
$failureUrl string
$lang string
$successUrl string

Public Methods

Method Description
addChannel ( string $code, string $name, string $logo = NULL, string $offline = NULL, string $description = NULL, array $params = [] ) : self Adds custom payment channel
allowChangeChannel ( boolean $changeChannel = TRUE ) : self
getChannels ( ) * Returns list of payment channels
getFailureUrl ( ) : string Returns failed URL
getSuccessUrl ( ) : string Returns success URL
setFailureUrl ( $url ) : self Sets URL when failed
setLang ( string $lang ) : self Sets payment gateway language
setSuccessUrl ( string $url ) : self Sets URL when successful

Method Details

addChannel() public method

Adds custom payment channel
public addChannel ( string $code, string $name, string $logo = NULL, string $offline = NULL, string $description = NULL, array $params = [] ) : self
$code string
$name string
$logo string
$offline string
$description string
$params array
return self

allowChangeChannel() public method

public allowChangeChannel ( boolean $changeChannel = TRUE ) : self
$changeChannel boolean
return self

getChannels() public method

* Returns list of payment channels
public getChannels ( )

getFailureUrl() public method

Returns failed URL
public getFailureUrl ( ) : string
return string

getSuccessUrl() public method

Returns success URL
public getSuccessUrl ( ) : string
return string

setFailureUrl() public method

Sets URL when failed
public setFailureUrl ( $url ) : self
return self

setLang() public method

Sets payment gateway language
public setLang ( string $lang ) : self
$lang string
return self

setSuccessUrl() public method

Sets URL when successful
public setSuccessUrl ( string $url ) : self
$url string
return self

Property Details

$allowedLang protected_oe property

protected array $allowedLang
return array

$changeChannel protected_oe property

protected bool $changeChannel
return boolean

$channels protected_oe property

protected array $channels
return array

$failureUrl protected_oe property

protected string $failureUrl
return string

$lang protected_oe property

protected string $lang
return string

$successUrl protected_oe property

protected string $successUrl
return string