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
.
- Node
result.transaction.id;
result.transaction.status;
...
result.transaction.debit_network;
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.
- Node
const stream = gateway.transaction.search((search) => {
search.debitNetwork().is("STAR");
}, (err, response) => {
response.each((err, transaction) => {
console.log(transaction.amount);
});
});