Hi Joe, I just spend some time to go through the camel-paypal component that you are working on. I think you just put some pieces of component together.
Here are just some my thoughts of the component. I just checked the paypal API, there are REST and SOAP version can be used, it looks like you are using the SDK's AdaptivePaymentsService to call the service. So you are trying to build the Request from the message for the paypal producer to invoke the service. Basically, you just need to find a way to convert the application payment information into the Request object that the SDK has, you can do the invocation without any issue. Now I suggest you can define a common request object for the other component to use, then your convertor can work for most cases. For the paypal consumer, I think you can use it to receive the notification from the paypal, as paypal will send some back call to the Application. Any thought? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Tuesday, July 9, 2013 at 2:38 PM, Joe San wrote: > Hi Christian, > > Thanks for taking a look into this. I have uploaded what I have done so far > to the Github! > > https://github.com/joesan/camel-paypal.git > > Regards, > Jothi > > > On Mon, Jul 8, 2013 at 9:38 PM, Christian Müller < > christian.muel...@gmail.com (mailto:christian.muel...@gmail.com)> wrote: > > > > What would be the object type after the from? > > It's the component developer (in this case you) who decide how the expected > > format looks like. It could be a map with dedicated key's, ... > > It's common (but not mandatory) to use the Camel type converter mechanism > > for this. Is the current code available in the public to have a look? > > > > Best, > > Christian > > ----------------- > > > > Software Integration Specialist > > > > Apache Camel committer: https://camel.apache.org/team > > V.P. Apache Camel: https://www.apache.org/foundation/ > > Apache Member: https://www.apache.org/foundation/members.html > > > > https://www.linkedin.com/pub/christian-mueller/11/551/642 > > > > > > On Sat, Jun 29, 2013 at 6:20 PM, Jothi <codeintheo...@gmail.com > > (mailto:codeintheo...@gmail.com)> wrote: > > > > > I'm back working on this ticket. I understand that I have to write a > > > converter to arrive at the PayPalRequest object. But what would be the > > > format of the incoming object? > > > > > > For example., in the following route, > > > > > > from( > > http://mywebsite.paypal.com/pay).to(paypal://adaptivepayments?operation=pay > > > ) > > > > > > What would be the object type after the from? I guess I need to pass that > > > object type as a parameter to my converter method to create the > > > PayPalPayRequest object before it can be passed to the paypal component. > > > The > > > attached screenshot shows the fields for a pay request. > > > > > > < > > http://camel.465427.n5.nabble.com/file/n5735002/Screen_Shot_2013-06-29_at_6.15.55_PM.png > > > > > > > > > > > > > > > > < > > http://camel.465427.n5.nabble.com/file/n5735002/Screen_Shot_2013-06-29_at_6.17.41_PM.png > > > > > > > > > > > > > > > > Help appreciated! > > > > > > Regards, > > > Joe > > > > > > > > > > > > -- > > > View this message in context: > > > > > > > > > http://camel.465427.n5.nabble.com/Camel-PayPal-Component-tp5728062p5735002.html > > > Sent from the Camel Development mailing list archive at Nabble.com > > > (http://Nabble.com). > > > > > >