php-sdk icon indicating copy to clipboard operation
php-sdk copied to clipboard

Transaction: getState() method returns string

Open tobias47n9e opened this issue 2 years ago • 1 comments

It seems like this line is giving wrong type information. The function does not return an instance of the class TransactionState, but a string.

    /**
     * Gets state
     *
     * @return \PostFinanceCheckout\Sdk\Model\TransactionState
     */
    public function getState()
    {
        return $this->container['state'];
    }

https://github.com/pfpayments/php-sdk/blob/39c68c8b6884e78254d5d89fb9782c1e4d2286e8/lib/Model/Transaction.php#L2134C8-L2134C8

tobias47n9e avatar Oct 09 '23 17:10 tobias47n9e