public static function setProvider($option = '')
    {
        // Set default provider.
        if (empty($option) || ($option != 'adaptive_payments') || ($option == 'express_checkout')) {
            self::$provider = new ExpressCheckout();
        } else {
            self::$provider = new AdaptivePayments();
        }

        return self::getProvider();
    }
public static function setProvider($option = '')
    {
        // Set default provider.
        if (empty($option) || ($option != 'adaptive_payments') || ($option == 'express_checkout')) {
            self::$provider = new ExpressCheckout();
        } else {
            self::$provider = new AdaptivePayments();
        }

        return self::getProvider();
    }
public static function setProvider ( $ option = '' ) { // Set default provider. if ( empty ( $ option ) || ( $ option != 'adaptive_payments' ) || ( $ option == 'express_checkout' ) ) { self :: $ provider = new ExpressCheckout ( ) ; } else { self :: $ provider = new AdaptivePayments ( ) ; } return self :: getProvider ( ) ; }
Set specific PayPal API to use.

@param string $option

@return ExpressCheckout|AdaptivePayments
Set specific PayPal API to use .