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
return_url = return_url.Replace("?", "/")
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:
https://localhost:6000/api/utilisateur/validationpaiement?xxxx
urlshttps://localhost:6000/api/utilisateur/validationpaiement/xxxx
and forward whatever content you received