public function createSale(Sale $sale)
    {
        $createSaleRequest = new CreateSaleRequest($this->merchant, $this->environment);

        return $createSaleRequest->execute($sale);
    }
public function createSale(Sale $sale)
    {
        $createSaleRequest = new CreateSaleRequest($this->merchant, $this->environment);

        return $createSaleRequest->execute($sale);
    }
public function createSale ( Sale $ sale ) { $ createSaleRequest = new CreateSaleRequest ( $ this -> merchant , $ this -> environment ) ; return $ createSaleRequest -> execute ( $ sale ) ; }
Send the Sale to be created and return the Sale with tid and the status
returned by Cielo.

@param Sale $sale
The preconfigured Sale

@return Sale The Sale with authorization, tid, etc. returned by Cielo.

@throws \Cielo\API30\Ecommerce\Request\CieloRequestException if anything gets wrong.

@see <a href=
"https://developercielo.github.io/Webservice-3.0/english.html#error-codes">Error
Codes</a>
Send the Sale to be created and return the Sale with tid and the status returned by Cielo .