| Line 204... |
Line 204... |
| 204 |
} else {
|
204 |
} else {
|
| 205 |
DataLogger.logData(EventType.RECHARGE_SUCCESSFUL, getSessionId(), userinfo.getUserId(), userinfo.getEmail(),
|
205 |
DataLogger.logData(EventType.RECHARGE_SUCCESSFUL, getSessionId(), userinfo.getUserId(), userinfo.getEmail(),
|
| 206 |
Long.toString(rechargeOrder.getOperatorId()), Long.toString(rechargeOrder.getTotalAmount()), Long.toString(rechargeOrder.getWalletAmount()),
|
206 |
Long.toString(rechargeOrder.getOperatorId()), Long.toString(rechargeOrder.getTotalAmount()), Long.toString(rechargeOrder.getWalletAmount()),
|
| 207 |
rechargeOrder.getRechargeType().toString());
|
207 |
rechargeOrder.getRechargeType().toString());
|
| 208 |
|
208 |
|
| - |
|
209 |
String operator = "";
|
| - |
|
210 |
if(isDTH()) {
|
| - |
|
211 |
operator = getProvider();
|
| - |
|
212 |
} else {
|
| - |
|
213 |
operator = getProvider() + " mobile";
|
| - |
|
214 |
}
|
| - |
|
215 |
|
| - |
|
216 |
String original_referer = "http://www.saholic.com/recharge-result?paymentId=" + this.request.getParameter("paymentId");
|
| 209 |
String fbUrl = "";
|
217 |
String fbUrl = "";
|
| - |
|
218 |
String twitterUrl = "";
|
| - |
|
219 |
String shareMsg = "";
|
| 210 |
String giftMessage = "Congratulations! Your device is successfully recharged.";
|
220 |
String giftMessage = "Congratulations! Your device is successfully recharged.";
|
| 211 |
if(rechargeOrder.getTotalAmount()>=100){
|
221 |
if(rechargeOrder.getTotalAmount()>=100){
|
| 212 |
if(rechargeOrder.getTotalAmount()>=500){
|
222 |
if(rechargeOrder.getTotalAmount()>=500){
|
| - |
|
223 |
shareMsg = "I just recharged my " + operator + " at Saholic.com and got Rs.500 cashback";
|
| 213 |
fbUrl = "http://www.facebook.com/dialog/feed?app_id=291830044248933&link=www.saholic.com/static/giftvoucher-offer?afid=6666&picture=http://i1074.photobucket.com/albums/w407/amathur2k/logo_saholic.png&name=I just won a Rs.500 Coupon Code&caption=Win Assured Gift Coupons worth 100% on every Mobile or DTH Recharge&description=One Click Hassle Free Recharges&redirect_uri=http://saholic.com/?shared=1";
|
224 |
fbUrl = "http://www.facebook.com/dialog/feed?app_id=291830044248933&link=www.saholic.com/recharge?afid=61&picture=http://i1074.photobucket.com/albums/w407/amathur2k/logo_saholic.png&name=" + shareMsg + "&caption=Win Assured Gift Coupons worth upto Rs.500 on every Mobile or DTH Recharge&description=One Click Hassle Free Recharges&redirect_uri=http://saholic.com/?shared=1";
|
| - |
|
225 |
twitterUrl = "https://twitter.com/intent/tweet?hashtags=saholic&original_referer=" + original_referer + "&related=saholic&source=saholic.com&text=" + shareMsg + "&url=http://www.saholic.com/recharge/afid?64&via=saholic";
|
| - |
|
226 |
giftMessage = "Congratulations! Your device is successfully recharged and you have " +
|
| 214 |
giftMessage = "Congratulations! Your device is successfully recharged and you have won Gift Coupons worth Rs.500 which you can use to shop for Mobiles, Laptops, Cameras, Accessories. Please help us Spread the word by Sharing on Facebook <a href='" + fbUrl + "'><img width='155' height='35' src='/images/Post-On-Facebook-6323.jpg'></a>";
|
227 |
"won Gift Coupons worth Rs.500 which you can use to shop for Mobiles, Laptops, Cameras, Accessories.<br><br>" +
|
| - |
|
228 |
"Voucher details have been sent to your email.<a target='_blank' href='/static/giftvoucher-offer'> Learn more.</a>" +
|
| - |
|
229 |
"<br><br>Please help us spread the word." +
|
| - |
|
230 |
"<div style=\"margin-top: 40px;text-align: center;\">" +
|
| - |
|
231 |
"<a target='_blank' href='" + twitterUrl + "'>" +
|
| - |
|
232 |
"<input type='button' style=\"background: url('/images/tweet-about-us.png') 0px 1px;width: 160px;height: 40px;margin-right: 40px;\"></a>" +
|
| - |
|
233 |
"<a target='_blank' href='" + fbUrl + "'>" +
|
| - |
|
234 |
"<input type=\"button\" style=\"background:url('/images/Post-On-Facebook.jpg');width: 160px;height: 40px;\">" +
|
| - |
|
235 |
"</a></div>";
|
| 215 |
}else{
|
236 |
}else{
|
| - |
|
237 |
shareMsg = "I just recharged my " + operator + " at Saholic.com and got full cashback";
|
| 216 |
fbUrl = "http://www.facebook.com/dialog/feed?app_id=291830044248933&link=www.saholic.com/static/giftvoucher-offer?afid=6666&picture=http://i1074.photobucket.com/albums/w407/amathur2k/logo_saholic.png&name=I just won a Rs. " + rechargeOrder.getTotalAmount() + " Coupon Code&caption=Win Assured Gift Coupons worth 100% on every Mobile or DTH Recharge&description=One Click Hassle Free Recharges&redirect_uri=http://saholic.com/?shared=1";
|
238 |
fbUrl = "http://www.facebook.com/dialog/feed?app_id=291830044248933&link=www.saholic.com/recharge?afid=61&picture=http://i1074.photobucket.com/albums/w407/amathur2k/logo_saholic.png&name=" + shareMsg + "&caption=Win Assured Gift Coupons worth upto Rs.500 on every Mobile or DTH Recharge&description=One Click Hassle Free Recharges&redirect_uri=http://saholic.com/?shared=1";
|
| - |
|
239 |
twitterUrl = "https://twitter.com/intent/tweet?hashtags=saholic&original_referer=" + original_referer + "&related=saholic&source=saholic.com&text=" + shareMsg + "&url=http://www.saholic.com/recharge?afid=64&via=saholic";
|
| - |
|
240 |
giftMessage = "Congratulations! Your device is successfully recharged and you have " +
|
| 217 |
giftMessage = "Congratulations! Your device is successfully recharged and you have won Gift Coupons worth Rs." + rechargeOrder.getTotalAmount() + " which you can use to shop for Mobiles, Laptops, Cameras, Accessories. Please help us Spread the word by Sharing on Facebook <a href='" + fbUrl + "'><img width='155' height='35' src='/images/Post-On-Facebook-6323.jpg'></a>";
|
241 |
"won Gift Coupons worth Rs." + rechargeOrder.getTotalAmount() + " which you can use to shop for Mobiles, Laptops, Cameras, Accessories.<br><br>" +
|
| - |
|
242 |
"Voucher details have been sent to your email.<a target='_blank' href='/static/giftvoucher-offer'> Learn more.</a>" +
|
| - |
|
243 |
"<br><br>Please help us spread the word." +
|
| - |
|
244 |
"<div style=\"margin-top: 40px;text-align: center;\">" +
|
| - |
|
245 |
"<a target='_blank' href='" + twitterUrl + "'>" +
|
| - |
|
246 |
"<input type='button' style=\"background: url('/images/tweet-about-us.png') 0px 1px;width: 160px;height: 40px;margin-right: 40px;\"></a>" +
|
| - |
|
247 |
"<a target='_blank' href='" + fbUrl + "'>" +
|
| - |
|
248 |
"<input type=\"button\" style=\"background:url('/images/Post-On-Facebook.jpg');width: 160px;height: 40px;\">" +
|
| - |
|
249 |
"</a></div>";
|
| 218 |
}
|
250 |
}
|
| 219 |
}
|
251 |
}
|
| 220 |
return new String[] {"", "SUCCESS", giftMessage};
|
252 |
return new String[] {"", "SUCCESS", giftMessage};
|
| 221 |
}
|
253 |
}
|
| 222 |
}
|
254 |
}
|