SilverStripe\Omnipay\GatewayInfo::configToConstant
Helper method to convert a config setting to a predefined constant for values that can have the three states: OFF, FULL, PARTIAL or MULTIPLE
Signature
protected function configToConstant(string
$gateway,
string
$key )
Parameters
$gateway
— string- the gateway name
$key
— string- the config key
Returns
- string
- either "off", "full", "partial" or "multiple"