public function charge()
    {
        return !is_null($this->transactionRef) ?
            $this->getTransactionResource()->chargeAuthorization($this->_requestPayload()) :
            new PaystackInvalidTransactionException(
                json_decode(
                    json_encode(
                        [
                            'message' => 'Transaction Reference Not Generated.',
                        ]
                    ),
                    false
                )
            );
    }
public function charge()
    {
        return !is_null($this->transactionRef) ?
            $this->getTransactionResource()->chargeAuthorization($this->_requestPayload()) :
            new PaystackInvalidTransactionException(
                json_decode(
                    json_encode(
                        [
                            'message' => 'Transaction Reference Not Generated.',
                        ]
                    ),
                    false
                )
            );
    }
public function charge ( ) { return ! is_null ( $ this -> transactionRef ) ? $ this -> getTransactionResource ( ) -> chargeAuthorization ( $ this -> _requestPayload ( ) ) : new PaystackInvalidTransactionException ( json_decode ( json_encode ( [ 'message' => 'Transaction Reference Not Generated.' , ] ) , false ) ) ; }
Charge returning transaction.

@return \Exception|mixed|PaystackInvalidTransactionException
Charge returning transaction .