Subversion Repositories SmartDukaan

Rev

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

Rev 1129 Rev 1248
Line 10... Line 10...
10
    get_payment_gateway, update_payment_details, close_session
10
    get_payment_gateway, update_payment_details, close_session
11
from shop2020.payments.impl.converters import to_t_payment, to_t_payment_gateway
11
from shop2020.payments.impl.converters import to_t_payment, to_t_payment_gateway
12
 
12
 
13
class PaymentsHandler:
13
class PaymentsHandler:
14
    
14
    
15
    def __init__(self):
15
    def __init__(self, dbname='payment'):
16
        DataService.initialize()
16
        DataService.initialize(dbname)
17
        log_entry(self, "Initialized the data model")
17
        log_entry(self, "Initialized the data model")
18
    
18
    
19
    def createPayment(self, userId, amount, gatewayId, txnId):
19
    def createPayment(self, userId, amount, gatewayId, txnId):
20
        """
20
        """
21
        create a new payment and return payment id, throws an exception if gateway is not active
21
        create a new payment and return payment id, throws an exception if gateway is not active