Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirecting to an external payment website

 
Hanneli Andreazzi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone!
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!! =)

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18009
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Dominik Obermaier
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forgive me for digging up this old thread, but I have exactly the same problem which Hanneli described.

Hanneli, have you found any solutions for this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic