lib/onepay/OnepayBase.php
public static function setCurrentIntegrationType($type)
    {
        if (!self::integrationTypes()[$type]) {
            $integrationTypes = array_keys(self::integrationTypes());
            $integrationTypesAsString = join($integrationTypes, ", ");
            throw new \Exception('Invalid integration type, valid values are: ' . $integrationTypesAsString);
        }
        self::$integrationType = $type;
    }
public static function setCurrentIntegrationType($type)
    {
        if (!self::integrationTypes()[$type]) {
            $integrationTypes = array_keys(self::integrationTypes());
            $integrationTypesAsString = join($integrationTypes, ", ");
            throw new \Exception('Invalid integration type, valid values are: ' . $integrationTypesAsString);
        }
        self::$integrationType = $type;
    }
public static function setCurrentIntegrationType ( $ type ) { if ( ! self :: integrationTypes ( ) [ $ type ] ) { $ integrationTypes = array_keys ( self :: integrationTypes ( ) ) ; $ integrationTypesAsString = join ( $ integrationTypes , ", " ) ; throw new \ Exception ( 'Invalid integration type, valid values are: ' . $ integrationTypesAsString ) ; } self :: $ integrationType = $ type ; }
Set the integration type
Set the integration type