title: Spring - Payment Gateway integration
body: <p>I am trying to develop a proxy for a local payment gateway (i.e.: users will use our system to pay and the real payment gateway will be hidden). What is the best way to post calls to the payment gateway from our system? I was thinking of developing a service and use httpclient (post method over ssl) any ideas? or sample code?</p>
  
  <p>the system could become complex coz I have transations and the http call would be part of them (call payment gateway, insert data locally, update some other records in db...etc..) and I was thinking of developing a special log to update it whenever any operation is successful if it is not I save it and process it later via cron ! is this a good architecture?</p>