my dog learned polymorphism*
The moose likes Servlets and the fly likes payment gateway integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "payment gateway integration" Watch "payment gateway integration" New topic
Author

payment gateway integration

randeep singh singh
Greenhorn

Joined: Oct 03, 2003
Posts: 3
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
is there a way the to keep my session same

How are you telling Citibank where to redirect the user after the transaction?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
randeep singh singh
Greenhorn

Joined: Oct 03, 2003
Posts: 3
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
Are you using cookies or URL rewriting on your site to track sessions?
randeep singh singh
Greenhorn

Joined: Oct 03, 2003
Posts: 3
we r using cookies for session traking.
default as per servlet API specification
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Interesting. Then I can't see why the browser would drop the cookie--unless the browser settings have something to do with this behaviour...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: payment gateway integration