Results 1 to 4 of 4

Thread: Urlmapping with paypal return urls

  1. #1
    Join Date
    Sep 2006
    Posts
    11

    Default Urlmapping with paypal return urls

    Hey guys,

    Loving Spring. I am stuck though, to do with urlMapping (org.springframework.web.servlet.handler.SimpleUrl HandlerMapping). For those of you who dont know, when integrating with Paypal you can set the return to URL if a payment is successful, and another one if the payment is cancelled. For myself I want to set a url like

    /paymentfailed.paypal?paymentId=abc&accountID=abc

    and if a payment passes I want to set it as

    /paymentpassed.paypal?paymentId=abc&accountID=abc

    How do I do this using the SimpleURLHandler?

    do I need to put a * to replace all the request parameters in the URL? Or will the SimpleUrlHandler deal with just the url up until the frist parameter?

    Can I match on /paymentpassed.paypal or *.paypal or do I have to do something like paymentpassed.paypal*?

    Thanks guys

    Mike

  2. #2
    Join Date
    Jul 2005
    Location
    Idaho
    Posts
    231

    Default

    Mike,

    As I remember, PayPal takes money and gives you nothing back... including parameters! Since you have to set up the return URL's with PayPal, you really can't have, say a paymentId or an accountId passed nicely back to you.

    You may want to either store the information in a database by sessionId, and have the information you need to present upon completion or cancellation ready when they come back to you.

    Also, keep in mind that, with my experiences, people generally don't 'Return to Merchant' in PayPal, so make sure you are not depending on that! I would be nice if they sent people automatically back.

    Good luck,

    Steve O

  3. #3
    Join Date
    Nov 2005
    Location
    Reutlingen, Germany
    Posts
    2,098

    Default

    Quote Originally Posted by Steve O View Post
    As I remember, PayPal takes money and gives you nothing back... including parameters!


    Joerg
    This post can contain insufficient information.

  4. #4
    Join Date
    Jul 2008
    Location
    Maasmechelen (Belgium)
    Posts
    157

    Default

    Rofl!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •