Ingenico-ePayments / connect-sdk-java

Ingenico Connect Java Server SDK
https://docs.connect.worldline-solutions.com/documentation/sdk/server/java/
Other
31 stars 23 forks source link

The query string of returnUrl is ignored when using hostedcheckouts #24

Closed alv131 closed 2 years ago

alv131 commented 2 years ago

Hello. I am trying to use 'hostedcheckouts' following the information the information found here:

https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/json/hostedcheckouts/create.html?paymentPlatform=ALL#hostedcheckouts-create-request

returnUrl

Description The URL that the customer is redirect to after the payment flow has finished. You can add any number of key value pairs in the query string that, for instance help you to identify the customer when they return to your site. Please note that we will also append some additional key value pairs that will also help you with this identification process. Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use on mobile devices a custom protocol can be used in the form of protocol://. This protocol must be registered on the device first. URLs without a protocol will be rejected.

The returnURL is not fully used when the POST method is called - the query string is not used!

I am not using a SDK but I've tested my code using curl to POST a request using an URL with parameters and that part works!

alv131 commented 2 years ago

Actually it works if the hostedCheckoutSpecificInput.showResultPage flag has the right value! My bad!