public function cancelPayment(CieloPayment $cieloPayment)
    {
        try {
            $sale = (new CieloEcommerce($this->merchant, $this->environment))->cancelSale($cieloPayment->getId(), $cieloPayment->getValue());

            $paymentData = $sale->jsonSerialize();
            $paymentStatus = $sale->getStatus();
            $paymentMessage = $sale->getReturnMessage();
        } catch (CieloRequestException $e) {
            $error = $e->getCieloError();
            throw new ResourceErrorException($error->getMessage(), $error->getCode());
        }

        return new ResourceResponse($paymentStatus, $paymentMessage, $paymentData);
    }