Paypal Gateway for Appfuse
I implemented a paypal gateway for appfuse recently. So that according to subscription payments, appropriate user roles would be assigned. I think I went about it the long way. But anyway I basically created a paypalnotification POJO, and configured it with an action such that the paypal notification(IPN) when it arrives comes in like a struts form submission. ie it gets mapped straight to the paypalnotification actionform.
I then just process this like any other struts action. The good thing about this is that it really integrates well with appfuse. Setting up the POJO properly is the hard part. Testing is also a real drag.
However you can't really avoid the complexity of paypal IPN. There are a lot of fields in the paypal ipn data, and it is a bit nerve wracking trying to process all the different types of transactions. It all seems to work now anyway.
I implemented a paypal gateway for appfuse recently. So that according to subscription payments, appropriate user roles would be assigned. I think I went about it the long way. But anyway I basically created a paypalnotification POJO, and configured it with an action such that the paypal notification(IPN) when it arrives comes in like a struts form submission. ie it gets mapped straight to the paypalnotification actionform.
I then just process this like any other struts action. The good thing about this is that it really integrates well with appfuse. Setting up the POJO properly is the hard part. Testing is also a real drag.
However you can't really avoid the complexity of paypal IPN. There are a lot of fields in the paypal ipn data, and it is a bit nerve wracking trying to process all the different types of transactions. It all seems to work now anyway.
Post a Comment