public function isSuccessful()
    {
        return $this->data->getStatus() === InvoiceInterface::STATUS_CONFIRMED || $this->data->getStatus() === InvoiceInterface::STATUS_COMPLETE;
    }
public function isSuccessful()
    {
        return $this->data->getStatus() === InvoiceInterface::STATUS_CONFIRMED || $this->data->getStatus() === InvoiceInterface::STATUS_COMPLETE;
    }
public function isSuccessful ( ) { return $ this -> data -> getStatus ( ) === InvoiceInterface :: STATUS_CONFIRMED || $ this -> data -> getStatus ( ) === InvoiceInterface :: STATUS_COMPLETE ; }
Whether the payment is successful.
@return boolean
Whether the payment is successful .