Code Samples
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
.
- Ruby
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.
- Ruby
collection = gateway.transaction.search do |search|
search.debit_network.is "STAR"
end
collection.each do |transaction|
puts transaction.amount
end