I am looking to build an application where the user will have the ability to purchase products from my site. The purchase will include physical items they are purchasing, shipping, taxes if applicable, etc. I know PayPal has numerous options available for payments, one of which is Web Services the other is simply redirecting to their site. I would like for the user’s experience to be as seamless as possible, but I do not want to get into the business of storing credit cards etc.
If I do handle the transaction on my server (with a secure connection/SSL), would I be imposing a risk for even passing the credit card information to their service for processing?
Play! Framework v1.2 has a very good support for WebServices. There’s no paypal module for Play, but the code is not too complex to write. I implemented the Web service solution for our job board (www.express-board.fr) and it took 3 days.
First : the user is always redirected to the Paypal website. There’s no solution with no paypal client facing. If you go for the Webservice solution (developer.paypal.com) you can however customize the paypal web page with your logo. Not the best solution, but it works.
On the Play side, here is a sample code for a checkout method, that uses the Paypal Web service :
Hope it helps