skip to Main Content

In the usage of the return_url field, Paypal adds a "?" before the parameters it returns.
In my case, the "?" either deleted or replaced by a "/".

How to do please?

Thanks for your help !

Example :

return_url = "https://localhost:6000/api/utilisateur/validationpaiement"

Paypal return : https://localhost:6000/api/utilisateur/validationpaiement?12345

I would like to obtain :

https://localhost:6000/api/utilisateur/validationpaiement/12345

2

Answers


  1. return_url = return_url.Replace("?", "/")

    Login or Signup to reply.
  2. This is not possible I think. But most framework/language/router can handle this kind of scenario. What would you use to handle the request?
    If you are not able to change the way your app deals with return urls (ie: closed app, enterprise environment, etc.), you can still "convert" the request with an intermediate script in the language of your choice:

    • listen for https://localhost:6000/api/utilisateur/validationpaiement?xxxx urls
    • then make a call to https://localhost:6000/api/utilisateur/validationpaiement/xxxx and forward whatever content you received
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search