| Line 1320... |
Line 1320... |
| 1320 |
try:
|
1320 |
try:
|
| 1321 |
helper_client = HelperClient(host_key = "helper_service_server_host_prod").get_client()
|
1321 |
helper_client = HelperClient(host_key = "helper_service_server_host_prod").get_client()
|
| 1322 |
helper_client.saveUserEmailForSending([user_email], SaholicHelpEmailId, subject, email_html, logisticsTxnId, "DeliverySuccess", [], [], order.source)
|
1322 |
helper_client.saveUserEmailForSending([user_email], SaholicHelpEmailId, subject, email_html, logisticsTxnId, "DeliverySuccess", [], [], order.source)
|
| 1323 |
|
1323 |
|
| 1324 |
if order.source == OrderSource.WEBSITE:
|
1324 |
if order.source == OrderSource.WEBSITE:
|
| 1325 |
send_transaction_sms(order.customer_id, order.customer_mobilenumber, "Dear Customer, Your order: " + logisticsTxnId + " has been delivered now. For any queries please call 0120-2479977." , SmsType.TRANSACTIONAL, True)
|
1325 |
send_transaction_sms(order.customer_id, order.customer_mobilenumber, "Dear Customer, Your order: " + logisticsTxnId + " has been delivered now. For any queries please call +919811247808." , SmsType.TRANSACTIONAL, True)
|
| 1326 |
|
1326 |
|
| 1327 |
return True
|
1327 |
return True
|
| 1328 |
except Exception as e:
|
1328 |
except Exception as e:
|
| 1329 |
print e
|
1329 |
print e
|
| 1330 |
return False
|
1330 |
return False
|
| Line 5500... |
Line 5500... |
| 5500 |
print e
|
5500 |
print e
|
| 5501 |
'''
|
5501 |
'''
|
| 5502 |
elif status == "Recharge Failed" and recharge_order.description != "Invalid Device Number" :
|
5502 |
elif status == "Recharge Failed" and recharge_order.description != "Invalid Device Number" :
|
| 5503 |
smsText = "Dear Customer, We could not process your recharge due to" + failureReasonSms + " We have credited the amount to your recharge wallet. You can use wallet amount to recharge again. "
|
5503 |
smsText = "Dear Customer, We could not process your recharge due to" + failureReasonSms + " We have credited the amount to your recharge wallet. You can use wallet amount to recharge again. "
|
| 5504 |
elif status == "Recharge Successful" :
|
5504 |
elif status == "Recharge Successful" :
|
| 5505 |
smsText = "Dear Customer, Thanks for recharging your mobile for Rs. "+ str(recharge_order.totalAmount) + " from Saholic.com. Order Id is "+ display_order_id + ". Any Query? please call 0120-2479977"
|
5505 |
smsText = "Dear Customer, Thanks for recharging your mobile for Rs. "+ str(recharge_order.totalAmount) + " from Saholic.com. Order Id is "+ display_order_id + ". Any Query? please call +919811247808"
|
| 5506 |
elif status == "Recharge Under Process" :
|
5506 |
elif status == "Recharge Under Process" :
|
| 5507 |
smsText = "Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet."
|
5507 |
smsText = "Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet."
|
| 5508 |
#Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet.
|
5508 |
#Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet.
|
| 5509 |
elif status == "Recharge Failed, Amount Refunded" :
|
5509 |
elif status == "Recharge Failed, Amount Refunded" :
|
| 5510 |
smsText = "Dear Customer, It seems operator could not process your recharge request. We are crediting the refund amount to your recharge wallet. You can use wallet amount to recharge again."
|
5510 |
smsText = "Dear Customer, It seems operator could not process your recharge request. We are crediting the refund amount to your recharge wallet. You can use wallet amount to recharge again."
|