k-deux
k-deux

Reputation: 493

html form submit handle response page with java

I have a PayPal "pay now" button. If I click it - a POST request is sent to paypal and my current view gets redirected to the paypal site where I can pay.

In my application I want to do 2 Actions with one button - so I have to build the paypal button on my own in plain java and send a post request tp paypal.

Now I get a response page (html) but I have no idea how I can do the same redirect as done by clicking the button. I could display the page under my url (wich is not what I want) but I can't do the same redirect as the original button.

So my questions are:

thanks a lot!

k2

Upvotes: 1

Views: 615

Answers (1)

k-deux
k-deux

Reputation: 493

My solution was, that paypal offers payment via email. I took this link to work around this problem.

Upvotes: 0

Related Questions