public function verify($transactionRef)
    {
        $transactionData = $this->getTransactionResource()->verify($transactionRef);

        if ($transactionData instanceof \Exception) {
            throw $transactionData;
        }

        if ($transactionData['status'] == TransactionContract::TRANSACTION_STATUS_SUCCESS) {
            return [
                'authorization' => $transactionData['authorization'],
                'customer'      => $transactionData['customer'],
                'amount'        => $transactionData['amount'],
                'plan'          => $transactionData['plan'],
            ];
        }

        return false;
    }
public function verify($transactionRef)
    {
        $transactionData = $this->getTransactionResource()->verify($transactionRef);

        if ($transactionData instanceof \Exception) {
            throw $transactionData;
        }

        if ($transactionData['status'] == TransactionContract::TRANSACTION_STATUS_SUCCESS) {
            return [
                'authorization' => $transactionData['authorization'],
                'customer'      => $transactionData['customer'],
                'amount'        => $transactionData['amount'],
                'plan'          => $transactionData['plan'],
            ];
        }

        return false;
    }
public function verify ( $ transactionRef ) { $ transactionData = $ this -> getTransactionResource ( ) -> verify ( $ transactionRef ) ; if ( $ transactionData instanceof \ Exception ) { throw $ transactionData ; } if ( $ transactionData [ 'status' ] == TransactionContract :: TRANSACTION_STATUS_SUCCESS ) { return [ 'authorization' => $ transactionData [ 'authorization' ] , 'customer' => $ transactionData [ 'customer' ] , 'amount' => $ transactionData [ 'amount' ] , 'plan' => $ transactionData [ 'plan' ] , ] ; } return false ; }
Verify Transaction.

@param $transactionRef

@throws \Exception

@return array|bool
Verify Transaction .