Code Samples

Fetch the routed debit network of a transactionanchor

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.

  1. Ruby
result.transaction.id
result.transaction.status
...
result.transaction.debit_network

Transaction search with debit networkanchor

Transactions can be retrieved using either the transaction ID or the network used for optimized debit routing during the transaction.

  1. Ruby
collection = gateway.transaction.search do |search|
  search.debit_network.is "STAR"
end

collection.each do |transaction|
  puts transaction.amount
end