Subversion Repositories SmartDukaan

Rev

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

Rev 6276 Rev 6279
Line 65... Line 65...
65
                print "Recharge is not successful. There is something wrong."
65
                print "Recharge is not successful. There is something wrong."
66
                continue
66
                continue
67
            if order.totalAmount != refundAmount:
67
            if order.totalAmount != refundAmount:
68
                print "Refund amount is not same as transaction amount"
68
                print "Refund amount is not same as transaction amount"
69
                continue
69
                continue
70
            order.status = RechargeOrderStatus.RECHARGE_FAILED_REFUNDED
70
            update_recharge_order_status(order.id, RechargeOrderStatus.RECHARGE_FAILED_REFUNDED, refundDate)
71
            order.responseTimestamp = refundDate
-
 
72
            session.commit()
-
 
73
            update_amount_in_wallet(order.userId, order.walletAmount, order.id)
-
 
74
            update_amount_in_wallet(order.userId, order.totalAmount - order.walletAmount, order.id)
-
 
75
            
-
 
76
 
71
 
77
def processUnknownTransactions():    
72
def processUnknownTransactions():    
78
    orders = get_recharge_orders_for_status(RechargeOrderStatus.PAYMENT_SUCCESSFUL)
73
    orders = get_recharge_orders_for_status(RechargeOrderStatus.PAYMENT_SUCCESSFUL)
79
    for order in orders:
74
    for order in orders:
80
        try:
75
        try: