LibraryAwareProcessorInterface
interface LibraryAwareProcessorInterface implements ProcessorInterface (View source)
{@inheritDoc}
A Library Aware Processor
is a transaction processor that has it client
library buildable by a library manager package a.k.a drewlabs/libman
for
instance. It provides a method that returns a library name or identifier that
might be used by the factory class to create the client.
Methods
Returns the payment process type of the processor. Payment process type can be a PUSH, TRANSACTIONAL payment process type
Based analysis phases processor supports 2 types of transaction.
Returns the library id attached to the processor
Details
string|int
getId()
Returns the unique id of the processor
string
getName()
Returns the unique processor name
bool
isActivated()
True if the procesor is active or not
string|int
getPaymentProcessType()
Returns the payment process type of the processor. Payment process type can be a PUSH, TRANSACTIONAL payment process type
bool
isTransactional()
Based analysis phases processor supports 2 types of transaction.
PUSH Txn: PUSH
type of transaction depends on user interacting with a
push receiver device to validate transaction. For such transactions
user are only required to provide an identifier to process transaction
TRANSACTIONAL Txn: TRANSACTIONAL
type of transaction on the other hand is handled
in 2 or more step. User provide platform with processor identifier
to request for a transaction validation code, which is used to confirm
the started transaction. The name of this type of transaction comes from
the more than one step involve in processing a transaction.
string
getLibrary()
Returns the library id attached to the processor