Im bringing up this topic.
I tried Dwolgars solution in many differences but its not working.
Forwarding and paying on paypal site is OK now with the DoExecute method posted earlier.
I think im missing something on EventID.
This is how my approved url looks like:
Code:
private void sessionmanager(RequestContext context) {
HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getNativeRequest();
//generate Spring Webflow return URL
String url = request.getRequestURL()+";jsessionid="+ request.getSession().getId() + "?" +
request.getQueryString();
String paypalCancelUrl = url + "&_eventId=end-state";
String paypalApprovedUrl = url + "&_eventId=approved";
}
flow.xml: (Just for testing i want to redirect to second flow page, when paypal returns)
Code:
<view-state id="view-state-1" view="sampleflow/view-state-1">
<transition on="success" to="view-state-2"/>
<transition on="cancel" to="end-state"/>
<transition on="approved" to="view-state-2"/>
</view-state>
But it doesnt redirect.
Here the complete URL what paypal is redirecting the browser to:
Code:
http://localhost:8080/testpaysys/sampleflow;jsessionid=D693C9D4A2681CA6FF18E7C7078EA971?null&_eventId=approved
Any ideas? (Can come in private also, if its confidental)