Retrieve information about transactions that have occurred on your account. A transaction occurs when an amount has been successfully transferred between the buyer and the seller. For example, a completed charge generates one transaction of type “credit”.
The string transaction.
The transaction identifier matching /trxn(_test)?_[0-9a-z]+/.
Whether this is a live (true) or test (false) transaction.
API path to retrieve the current transaction object.
Request<ScopedList<Transaction>>request=newTransaction.ListRequestBuilder().build();ScopedList<Transaction>transactions=client().sendRequest(request);System.out.printf("Total no. of transactions: %d",transactions.getTotal());