| Line 3504... |
Line 3504... |
| 3504 |
if retCode in ('SVAI', 'SVIA', 'AI', 'IA', 'EAI', 'SVEAI'):
|
3504 |
if retCode in ('SVAI', 'SVIA', 'AI', 'IA', 'EAI', 'SVEAI'):
|
| 3505 |
recharge_order.description = "Invalid Amount"
|
3505 |
recharge_order.description = "Invalid Amount"
|
| 3506 |
elif retCode in ('ECL', 'SVECL', 'SCL'):
|
3506 |
elif retCode in ('ECL', 'SVECL', 'SCL'):
|
| 3507 |
recharge_order.description = "Customer Exceeded Daily Limit"
|
3507 |
recharge_order.description = "Customer Exceeded Daily Limit"
|
| 3508 |
elif retCode in ('CI', 'ECI', 'ESP', 'SVCI', 'SVECI', 'SVESP', 'SV_ECI', 'SV ECI'):
|
3508 |
elif retCode in ('CI', 'ECI', 'ESP', 'SVCI', 'SVECI', 'SVESP', 'SV_ECI', 'SV ECI'):
|
| 3509 |
recharge_order.description = "Invalid Mobile Number"
|
3509 |
recharge_order.description = "Invalid Device Number"
|
| 3510 |
session.commit()
|
3510 |
session.commit()
|
| 3511 |
return False
|
3511 |
return False
|
| 3512 |
|
3512 |
|
| 3513 |
|
3513 |
|
| 3514 |
def get_user_wallet(userId):
|
3514 |
def get_user_wallet(userId):
|
| Line 3713... |
Line 3713... |
| 3713 |
"""
|
3713 |
"""
|
| 3714 |
|
3714 |
|
| 3715 |
FailureReasonMap = {}
|
3715 |
FailureReasonMap = {}
|
| 3716 |
FailureReasonMap["Invalid Amount"] = "the amount you tried seems to be invalid. Please try another amount."
|
3716 |
FailureReasonMap["Invalid Amount"] = "the amount you tried seems to be invalid. Please try another amount."
|
| 3717 |
FailureReasonMap["Customer Exceeded Daily Limit"] = "you have exceeded daily recharge limit for this number. Please try after 12 hours."
|
3717 |
FailureReasonMap["Customer Exceeded Daily Limit"] = "you have exceeded daily recharge limit for this number. Please try after 12 hours."
|
| 3718 |
FailureReasonMap["Invalid Mobile Number"] = "it seems that your mobile number is not being recognized by selected operator. Please make sure the number you tried is correct."
|
3718 |
FailureReasonMap["Invalid Device Number"] = "it seems that your device number is not being recognized by selected operator. Please make sure the number you tried is correct."
|
| 3719 |
|
3719 |
|
| 3720 |
failureReason = FailureReasonMap.get(recharge_order.description)
|
3720 |
failureReason = FailureReasonMap.get(recharge_order.description)
|
| 3721 |
if failureReason is None:
|
3721 |
if failureReason is None:
|
| 3722 |
failureReason = "of network failure."
|
3722 |
failureReason = "of network failure."
|
| 3723 |
if recharge_order.status == RechargeOrderStatus.RECHARGE_SUCCESSFUL:
|
3723 |
if recharge_order.status == RechargeOrderStatus.RECHARGE_SUCCESSFUL:
|