Replies: 2 comments 2 replies
-
Sorry, I don't follow here, what do you mean by "i want user goes into gateway url"? |
Beta Was this translation helpful? Give feedback.
-
You should be able to get the CompletionStage<WSResponse> stream = wsClient.url("https://www.paymentservice.com").setMethod("POST").stream(); JavaDoc: Hopefully I understand your question correctly, if not, feel free to correct me. You want the steps to be
If you're OK with the customer leaving your website, how you send the request doesn't matter, just return a 303 redirect response to the customer with the URL to the page you want to display. If you don't like |
Beta Was this translation helpful? Give feedback.
-
I'm implementing integration for a payment gateway, gateway docs shows a form with various hidden fields to be post submit to the gateway url, i don't want let those fields be available even as hidden in form rather i want to make a simple form with one text field for amount to be paid then in my controller i emulate the form post submit of gateway and user when hits the pay button posts happen and goes to processor, basically the question is how do emulate the form submit in controller and not with wsclient since i want user goes into gateway url, also i tried wsclient post but it return type not castable to CompleteStage
Beta Was this translation helpful? Give feedback.
All reactions