| Line 131... |
Line 131... |
| 131 |
amazonapiSettingsEditor = amazonData.edit();
|
131 |
amazonapiSettingsEditor = amazonData.edit();
|
| 132 |
flipkartDataEditor = flipkartData.edit();
|
132 |
flipkartDataEditor = flipkartData.edit();
|
| 133 |
affliateUrl=getArguments().getString("key");
|
133 |
affliateUrl=getArguments().getString("key");
|
| 134 |
orderDetails = new OrderTransactionDetails(getActivity());
|
134 |
orderDetails = new OrderTransactionDetails(getActivity());
|
| 135 |
|
135 |
|
| 136 |
|
136 |
// snapdeal.com/purchaseMobileComplete?code=|flipkart.com/orderresponse?reference_id=|amazon.in/gp/buy/spc/handlers/static-submit-decoupled.html|amazon.in/gp/buy/thankyou/handlers|m.saholic.com/pay-success?paymentId=|shopclues.com/orderconfirmation|
|
| 137 |
orderSuccessUrlList = new ArrayList<String>();
|
137 |
orderSuccessUrlList = new ArrayList<String>();
|
| 138 |
String issues =apiData.getString("list.order.success.url","snapdeal.com/purchaseMobileComplete?code=|flipkart.com/orderresponse?reference_id=|amazon.in/gp/buy/spc/handlers/static-submit-decoupled.html|amazon.in/gp/buy/thankyou/handlers|m.saholic.com/pay-success?paymentId=|shopclues.com/orderconfirmation|");
|
138 |
String issues =apiData.getString("list.order.success.url","blank");
|
| - |
|
139 |
Log.d("Order URSL","URLS"+ issues);
|
| 139 |
StringTokenizer st2 = new StringTokenizer(issues, "|");
|
140 |
StringTokenizer st2 = new StringTokenizer(issues, "|");
|
| 140 |
|
141 |
|
| 141 |
while (st2.hasMoreElements()) {
|
142 |
while (st2.hasMoreElements()) {
|
| 142 |
orderSuccessUrlList.add(st2.nextToken());
|
143 |
orderSuccessUrlList.add(st2.nextToken());
|
| 143 |
}
|
144 |
}
|
| 144 |
orderSuccessUrlList.add("paytm.com/shop/summary");
|
145 |
//orderSuccessUrlList.add("paytm.com/shop/summary");
|
| 145 |
if(isInternetOn()) {
|
146 |
if(isInternetOn()) {
|
| 146 |
if(orderDetails.countTotalRecords()>0){
|
147 |
if(orderDetails.countTotalRecords()>0){
|
| 147 |
sendQueuedResponse();
|
148 |
sendQueuedResponse();
|
| 148 |
}
|
149 |
}
|
| 149 |
type1 = userData.getString("type",null);
|
150 |
type1 = userData.getString("type",null);
|
| Line 192... |
Line 193... |
| 192 |
cookieManager1.setCookie(url, "token=" + userData.getString("token", ""));
|
193 |
cookieManager1.setCookie(url, "token=" + userData.getString("token", ""));
|
| 193 |
cookieManager1.setCookie(url, "walletAuthentication=true");
|
194 |
cookieManager1.setCookie(url, "walletAuthentication=true");
|
| 194 |
cookieManager1.setCookie(url, "shopcluesActive=true");
|
195 |
cookieManager1.setCookie(url, "shopcluesActive=true");
|
| 195 |
cookieManager1.setCookie(url, "paytmActive=true");
|
196 |
cookieManager1.setCookie(url, "paytmActive=true");
|
| 196 |
cookieManager1.setCookie(url, "shareApps=true");
|
197 |
cookieManager1.setCookie(url, "shareApps=true");
|
| - |
|
198 |
cookieManager1.setCookie(url, "homeshop18=true");
|
| 197 |
}
|
199 |
}
|
| 198 |
if(!(userData.getBoolean("paytmLoggedIn",false))){
|
200 |
if(!(userData.getBoolean("paytmLoggedIn",false))){
|
| 199 |
Log.d("User Not Logged In","User Not logged In");
|
201 |
Log.d("User Not Logged In","User Not logged In");
|
| 200 |
}else {
|
202 |
}else {
|
| 201 |
if (userData.getString("paytmOrder", "").equalsIgnoreCase("true")) {
|
203 |
if (userData.getString("paytmOrder", "").equalsIgnoreCase("true")) {
|
| Line 340... |
Line 342... |
| 340 |
cookieManager.setCookie(url, "token=" + userData.getString("token", ""));
|
342 |
cookieManager.setCookie(url, "token=" + userData.getString("token", ""));
|
| 341 |
cookieManager.setCookie(url, "walletAuthentication=true");
|
343 |
cookieManager.setCookie(url, "walletAuthentication=true");
|
| 342 |
cookieManager.setCookie(url, "shopcluesActive=true");
|
344 |
cookieManager.setCookie(url, "shopcluesActive=true");
|
| 343 |
cookieManager.setCookie(url, "paytmActive=true");
|
345 |
cookieManager.setCookie(url, "paytmActive=true");
|
| 344 |
cookieManager.setCookie(url, "shareApps=true");
|
346 |
cookieManager.setCookie(url, "shareApps=true");
|
| - |
|
347 |
cookieManager.setCookie(url, "homeshop18=true");
|
| 345 |
}
|
348 |
}
|
| 346 |
if(url.contains("dl.flipkart.com/dl/")){
|
349 |
if(url.contains("dl.flipkart.com/dl/")){
|
| 347 |
flipkartUrl=url;
|
350 |
flipkartUrl=url;
|
| 348 |
|
351 |
|
| 349 |
if(flipkartData.getInt("showagainflag",0)<3) {
|
352 |
if(flipkartData.getInt("showagainflag",0)<3) {
|
| Line 798... |
Line 801... |
| 798 |
return;
|
801 |
return;
|
| 799 |
}
|
802 |
}
|
| 800 |
|
803 |
|
| 801 |
public void getOrderSuccessUrlConfirmation(String url) throws Exception{
|
804 |
public void getOrderSuccessUrlConfirmation(String url) throws Exception{
|
| 802 |
for(String s:orderSuccessUrlList){
|
805 |
for(String s:orderSuccessUrlList){
|
| - |
|
806 |
Log.d("Url","Url"+ s);
|
| 803 |
if(url.contains(s)){
|
807 |
if(url.contains(s)){
|
| 804 |
displayActionBar=true;
|
808 |
displayActionBar=true;
|
| 805 |
String storeID = getStoreId(url);
|
809 |
String storeID = getStoreId(url);
|
| 806 |
if(storeID==null){
|
810 |
if(storeID==null){
|
| 807 |
Log.e("Deals Page Activity", "Null value returned for storeID");
|
811 |
Log.e("Deals Page Activity", "Null value returned for storeID");
|