I've been searching for some tips about it during all the week, but could not find anything concrete... I've found an old topic here (2005), but the answer was ins a broken link.
So, I have gotten the following problem: I must collect some info about the client using JSF, then redirect it for an [b]external[b] payment page using POST method. Something like:
What is the best way to do this? Should I create a servlet and then do it? Is there a way to do this using FacesCOntext.getCurrentInstance().getExternalCOntext()? If anyone has already had this kind of situation, could give me an example? Thanks a lot!! =)
Well, I have an app that works with PayPal, but what it does is contact the Paypal server internally, supplying PayPal with callback URLs. I send the invoicing data to PayPal, it provides the merchant services, then vectors back to my app once the purchase has been made. My JSF backing bean services do a URL redirect to a URL returned from the internal request to transition over to their server.
Other payment processors may work differently. You'll have to check the developer documentation for your merchant service provider(s).
An IDE is no substitute for an Intelligent Developer.