This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

payment gateway integration

 
randeep singh singh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys i am integrating my e comm site with citibank payment gateway .As a process user is rediredted to citibanks site and after completing the transaction the flow is agian redirected to out site.however servlet that redirects to citibanks site and the servlet that is called by citibank are same but when the flow is rediredted for citibank to our site a new session is started which i don't want because all my data is lost.
howvere using javascript history.go("URL"); i came back to my session and access data stored in session .
is there a way the to keep my session same ..
is it possible to send post data using server side redirect i.e without going to client browser.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there a way the to keep my session same

How are you telling Citibank where to redirect the user after the transaction?
 
randeep singh singh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when redirecting to citibank payment gateway interface server a hedden field is send as post data that contains besides ordervalue , orderno a url to send back the response
String malltociti02="0100|https://210.214.87.19/Eorder/ChkCitiToAmway|1|"+ChkSum+"|"+gmtdate+"|"+merchantcode+"|"+orderno+"|000001|"+ordervalue+"|";
my servlet ChkCitiToAmway is registered with citibank and when tx is complete control is transfered to this url but my worry is it starts a new session on my app server .. i cannot access my session data
regards
randeep
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using cookies or URL rewriting on your site to track sessions?
 
randeep singh singh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we r using cookies for session traking.
default as per servlet API specification
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting. Then I can't see why the browser would drop the cookie--unless the browser settings have something to do with this behaviour...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic