interface TransactionalProcessorLibraryInterface implements ProcessorLibraryInterface (View source)

{@inheritDoc}

A Transactional Processor Library provides API similar to Processor Library entity as it inherit from the processor library contract. It adds a requestOTP method that make request to send OTP to transactor using the implementation of their choice

Methods

toProcessTransactionResult(array|object $response)

Creates an instance of {ProcessTransactionResultInterface} from processor response

bool
processTransaction(TransactionPaymentInterface $transaction)

Process a transaction object using the processor implementation

bool
requestOTP(string $payeerid)

Request of an OTP used by client to process a transaction.

Details

ProcessTransactionResultInterface toProcessTransactionResult(array|object $response)

Creates an instance of {ProcessTransactionResultInterface} from processor response

Parameters

array|object $response

Return Value

ProcessTransactionResultInterface

bool processTransaction(TransactionPaymentInterface $transaction)

Process a transaction object using the processor implementation

Parameters

TransactionPaymentInterface $transaction

Return Value

bool

bool requestOTP(string $payeerid)

Request of an OTP used by client to process a transaction.

It returns a boolean value indicating the successful state of the request

Parameters

string $payeerid

Return Value

bool