| Line 3393... |
Line 3393... |
| 3393 |
return True
|
3393 |
return True
|
| 3394 |
else:
|
3394 |
else:
|
| 3395 |
update_amount_in_wallet(recharge_order.userId, recharge_order.walletAmount, recharge_order.id)
|
3395 |
update_amount_in_wallet(recharge_order.userId, recharge_order.walletAmount, recharge_order.id)
|
| 3396 |
update_amount_in_wallet(recharge_order.userId, recharge_order.totalAmount - recharge_order.walletAmount, recharge_order.id)
|
3396 |
update_amount_in_wallet(recharge_order.userId, recharge_order.totalAmount - recharge_order.walletAmount, recharge_order.id)
|
| 3397 |
session.commit()
|
3397 |
session.commit()
|
| - |
|
3398 |
##Create ticket in case of recharge failed
|
| - |
|
3399 |
transaction_requiring_extra_processing = TransactionRequiringExtraProcessing()
|
| - |
|
3400 |
transaction_requiring_extra_processing.category = 'RECHARGE_UNKNOWN'
|
| - |
|
3401 |
transaction_requiring_extra_processing.transaction_id = recharge_order.transaction_id
|
| - |
|
3402 |
session.commit()
|
| 3398 |
return False
|
3403 |
return False
|
| 3399 |
except:
|
3404 |
except:
|
| 3400 |
transaction_requiring_extra_processing = TransactionRequiringExtraProcessing()
|
3405 |
transaction_requiring_extra_processing = TransactionRequiringExtraProcessing()
|
| 3401 |
transaction_requiring_extra_processing.category = 'RECHARGE_UNKNOWN'
|
3406 |
transaction_requiring_extra_processing.category = 'RECHARGE_UNKNOWN'
|
| 3402 |
transaction_requiring_extra_processing.transaction_id = recharge_order.transaction_id
|
3407 |
transaction_requiring_extra_processing.transaction_id = recharge_order.transaction_id
|