manta.payproc.TXStorageMemory¶
-
class
manta.payproc.TXStorageMemory[source]¶ Implmentation of TXStorage as memory storage
-
create(txid, session_id, application, order, ack=None)[source]¶ Create a new transaction
Parameters: - txid (
int) – txid of Transaction - session_id (
str) – session_id of Transaction - application (
str) – application_id of Transaction - order (
MerchantOrderRequestMessage) – Merchant Order of Transaction - ack (
Optional[AckMessage]) – First Ack Message (ie status=NEW)
Returns:
Return type: TransactionState- txid (
-
get_state_for_session(session_id)[source]¶ Get state for transaction with session_id
Parameters: session_id ( str) – session_id of transactionReturns: state of transaction
Return type: TransactionState
-