src/cart/AbstractPurchase.php
public function execute()
    {
        if ($this->validate()) {
            $this->_result = static::perform(static::operation(), $this->getAttributes());

            return true;
        }

        return false;
    }
public function execute()
    {
        if ($this->validate()) {
            $this->_result = static::perform(static::operation(), $this->getAttributes());

            return true;
        }

        return false;
    }
public function execute ( ) { if ( $ this -> validate ( ) ) { $ this -> _result = static :: perform ( static :: operation ( ) , $ this -> getAttributes ( ) ) ; return true ; } return false ; }
Executes the purchase.
Calls proper API commands to purchase the product.
@throws ErrorPurchaseException in case of failed purchase
@return true if the item was purchased successfully
Executes the purchase . Calls proper API commands to purchase the product .