Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8776577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:05:35+00:00 2026-06-13T19:05:35+00:00

Hy! Im integrating Paypal payment in Spring Web flow. The app forwards the request

  • 0

Hy!

Im integrating Paypal payment in Spring Web flow.

The app forwards the request to the PayPal website using externalRedirect.(setExpresscheckout) User logs in to PayPal and pays for the item. Once the user completes the payment, paypal forwards the request back to the flow.
Is there is way to enter a particular view-state within the flow once the request comes back from PayPal?

I tried this, but doesnt work:

This is part of the paypalcontroller, where i set the return urls to paypal:

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:

<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>

this is the url what is generated by session manager code, and paypal redirects to it:

http://localhost:8080/testpaysys/sampleflow;jsessionid=D693C9D4A2681CA6FF18E7C7078EA971?null&_eventId=approved

The approved eventID seems not working, i get to the flow, but to the starting state.(doesnt redirect to state 2)

What am i missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:05:36+00:00Added an answer on June 13, 2026 at 7:05 pm

    you will need to use the execution key. you should use flowExecutionUrl in the return url that you are building in your controller.
    you can access it through context.getFlowExecutionUrl()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am testing integrating a website to Paypal, using Web Payments standard and HTML
Im integrating Paypal Adaptive Payment API for a mobile website. But when Im submitting
I'm currently integrating the paypal recurring payment process in my website (thanks to https://www.paypal.com/uk/cgi-bin/webscr?cmd=_pdn_subscr_techview_outside
I am integrating PayPal in my website But I have some issues in it.
I am integrating the MailChimp API into my app and am using a UserObserver
I'm integrating my site with another website using their API. From one of the
I have implemented 2 payment gateways in my app (paypal and datatrans). In both
I am integrating paypal service in my application using Activemerchant. Now I want to
I am using PayPal's DoDirectPayment API for payment integration. I am getting an error
I am using Paypal for the payment in my iPhone application.I gone through the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.