Fetch the routed debit network of a transaction
For transactions routed on debit networks, “debit network” field will be populated in the response
object during the authorization step and, will be available for subsequent actions, such as
submit_for_settlement
and void
.
- Java
Transaction transaction = result.getTarget();
transaction.getId();
transaction.getStatus();
...
transaction.getDebitNetwork();
Transaction search with debit network
Transactions can be retrieved using either the transaction ID or the network used for optimized
debit routing during the transaction.
- Java
TransactionSearchRequest request = new TransactionSearchRequest()
.debitNetwork()
.is("STAR");
ResourceCollection<transaction> collection = gateway.transaction().search(request);
for (Transaction transaction : collection) {
System.out.println(transaction.getAmount());
}