interface ProcessorLibraryInterface (View source)

A Processor Library is an entity used by the gateway service to process transactions

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

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