Subversion Repositories SmartDukaan

Rev

Rev 766 | Rev 1248 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 766 Rev 1129
Line 106... Line 106...
106
        try:
106
        try:
107
            return to_t_payment(get_payment_for_txn(txnId))
107
            return to_t_payment(get_payment_for_txn(txnId))
108
        finally:
108
        finally:
109
            close_session()
109
            close_session()
110
            
110
            
111
    def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, attributes):
111
    def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
112
        """
112
        """
113
        mark payment successful and store parameters
113
        mark payment successful and store parameters
114
        
114
        
115
        
115
        
116
        Parameters:
116
        Parameters:
Line 122... Line 122...
122
        - gatewayTxnId
122
        - gatewayTxnId
123
        - authCode
123
        - authCode
124
        - referenceCode
124
        - referenceCode
125
        - errorCode
125
        - errorCode
126
        - status
126
        - status
-
 
127
        - gatewayTxnDate
127
        - attributes
128
        - attributes
128
        """
129
        """
129
        try:
130
        try:
130
            return update_payment_details(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, attributes)
131
            return update_payment_details(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes)
131
        finally:
132
        finally:
132
            close_session()
133
            close_session()
133
            
134
            
134
    def closeSession(self, ):
135
    def closeSession(self, ):
135
        close_session()
136
        close_session()
136
137