clearer.services module
Implementation of a payments router. Takes payment packets as input
on ingress ports (interfaces), makes routing decisions and sents
packets out on egress ports.
-
exception
clearer.services.RoutingError[source]
Bases: Exception
-
class
clearer.services.RoutingService[source]
Bases: object
Provides a payments routing facility. Takes in a payment packet and make a routing (forwarding) decision on where to send the packet.
-
authorise(payment)[source]
Authorise a single payment packet via the settlement module.
-
format_payment(payment)[source]
Helper to show payment packet as something more readable.
-
route(payment)[source]
Route a single packet by finding its destination interface (BIC).