Subversion Repositories SmartDukaan

Rev

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

Rev 13374 Rev 13376
Line 221... Line 221...
221
                id, id,
221
                id, id,
222
                id, "IND",
222
                id, "IND",
223
                getPhone());
223
                getPhone());
224
        }
224
        }
225
        log.info("Billing details of recharge order " + rechargeOrder.getDisplayId() + " : " + billingDetails);
225
        log.info("Billing details of recharge order " + rechargeOrder.getDisplayId() + " : " + billingDetails);
226
        PayuPayPojo epp = new PayuPayPojo();
226
        ppp = new PayuPayPojo();
227
		epp.setKey(getAccountId());
227
		ppp.setKey(getAccountId());
228
		epp.setTxnid(getId());
228
		ppp.setTxnid(getId());
229
		epp.setBankcode("payuw");
229
		ppp.setBankcode("payuw");
230
		epp.setPg("Wallet");
230
		ppp.setPg("Wallet");
231
		String[] name = billingDetails.getName().split(" ");
231
		String[] name = billingDetails.getName().split(" ");
232
		epp.setFirstname(name[0]);
232
		ppp.setFirstname(name[0]);
233
		epp.setEmail(billingDetails.getEmail());
233
		ppp.setEmail(billingDetails.getEmail());
234
		epp.setPhone(billingDetails.getPhone());
234
		ppp.setPhone(billingDetails.getPhone());
235
		
235
		
236
		epp.setSurl(returnUrl);
236
		ppp.setSurl(returnUrl);
237
		epp.setFurl(returnUrl);
237
		ppp.setFurl(returnUrl);
238
		epp.setCurl(rechargeCancelUrl);
238
		ppp.setCurl(rechargeCancelUrl);
239
		
239
		
240
		epp.setAmount(getAmount() + "");
240
		ppp.setAmount(getAmount() + "");
241
		epp.setProductinfo(getDescription());
241
		ppp.setProductinfo(getDescription());
242
		try {
242
		try {
243
			epp.setHash(getSecureHash());
243
			ppp.setHash(getSecureHash());
244
		} catch (Exception e) {
244
		} catch (Exception e) {
245
			log.error("Could not set securehash" );
245
			log.error("Could not set securehash" );
246
		}
246
		}
247
		epp.setPostActionUrl(postActionUrl);
247
		ppp.setPostActionUrl(postActionUrl);
248
        return "show";
248
        return "show";
249
    }
249
    }
250
 
250
 
251
	public String getDescription(){
251
	public String getDescription(){
252
		if(this.description.length() >= 255)
252
		if(this.description.length() >= 255)