src/base/Gateway.php
protected function extractCardReference(ResponseInterface $response): string
    {
        if (!$response->isSuccessful()) {
            throw new PaymentException($response->getMessage());
        }

        return (string) $response->getTransactionReference();
    }
protected function extractCardReference(ResponseInterface $response): string
    {
        if (!$response->isSuccessful()) {
            throw new PaymentException($response->getMessage());
        }

        return (string) $response->getTransactionReference();
    }
protected function extractCardReference ( ResponseInterface $ response ) : string { if ( ! $ response -> isSuccessful ( ) ) { throw new PaymentException ( $ response -> getMessage ( ) ) ; } return ( string ) $ response -> getTransactionReference ( ) ; }
Extract a card reference from a response

@param ResponseInterface $response The response to use

@return string
@throws PaymentException on failure
Extract a card reference from a response