Subversion Repositories SmartDukaan

Rev

Rev 13372 | Rev 13376 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13372 Rev 13374
Line 159... Line 159...
159
			log.error("Error while evaluating secure hash", e);
159
			log.error("Error while evaluating secure hash", e);
160
			addActionError("We are experiencing some problems. Please try later.");
160
			addActionError("We are experiencing some problems. Please try later.");
161
			return "shipping-redirect";
161
			return "shipping-redirect";
162
		}
162
		}
163
		
163
		
164
		setResultJson(new Gson().toJson(ppp));
-
 
165
		
-
 
166
		return "index";
164
		return "show";
167
	}
165
	}
168
	
166
	
169
	/**
167
	/**
170
	 * This method is used for Recharge payments. It is being called by RechargePaymentController.
168
	 * This method is used for Recharge payments. It is being called by RechargePaymentController.
171
	 * @return
169
	 * @return
Line 245... Line 243...
245
			epp.setHash(getSecureHash());
243
			epp.setHash(getSecureHash());
246
		} catch (Exception e) {
244
		} catch (Exception e) {
247
			log.error("Could not set securehash" );
245
			log.error("Could not set securehash" );
248
		}
246
		}
249
		epp.setPostActionUrl(postActionUrl);
247
		epp.setPostActionUrl(postActionUrl);
250
		setResultJson(new Gson().toJson(epp));
-
 
251
        return "index";
248
        return "show";
252
    }
249
    }
253
 
250
 
254
	public String getDescription(){
251
	public String getDescription(){
255
		if(this.description.length() >= 255)
252
		if(this.description.length() >= 255)
256
			return this.description.substring(0, 255).trim();
253
			return this.description.substring(0, 255).trim();