Hello everyone,
I'm writing because we have integrated PayPal as payment method for our eCommerce site (running on ofbiz 13.07.03), and I'd like to share the thing with the community. The request of integration of PayPal arrived to us after the eCommerce was already up and running, and since that the delivery time was quite short, me and my team chose to take and update the existing methods already present in OFBIZ, instead of integrate a complete new gateway (but this will be the future). As mentioned, we started from the PayPal java methods present in the accounting component, in PayPalEvents.java . We worked, updated and moved to Groovy the methods "callPayPal", that redirects customer to the PayPal payment gateway, and "payPalIPN", the listener that send and receive asynchronously IPN messages to/from PayPal servers. The original code was quite old and a good work of studying of the documentation on PayPal development guides was required. Now the payment flow works well (both sandbox and production), customers are paying with success and orders are auto processed, depending on IPN messages. The only part that we are still developing is the service for crediting back a transaction. We are looking for sending the credit request to PayPal via a NVPRequest (there is something on the online docs): could this be a good way? Is there anyone who have had similar problems? Anyway we keep trying and I am at disposal and happy to give further informations and explanations on the work done, to everyone interested in. Thanks to all for the attention and thanks in advance for any help or suggestion. Giulio |
Hi Giulio,
Glad to know that the solution reference worked for you. Some more details on available integration- PayPal integration services implemented in OFBiz and available in 13.07. You can refer services_paypal.xml for services already available for PayPal and supports all the required methods- Express Checkout, capture, void and refund. Implementation of these services is done in PayPalServices.java. HTH. Best regards, Pranay Pandey On Fri, Jul 14, 2017 at 3:35 AM, Giulio Speri - MpStyle Srl < [hidden email]> wrote: > Hello everyone, > > I'm writing because we have integrated PayPal as payment method for our > eCommerce site (running on ofbiz 13.07.03), and I'd like to share the > thing with the community. > > The request of integration of PayPal arrived to us after the eCommerce was > already up and running, and since that the delivery time was quite short, > me and my team chose to take and update the existing methods already > present in OFBIZ, instead of integrate a complete new gateway (but this > will be the future). > > As mentioned, we started from the PayPal java methods present in the > accounting component, in PayPalEvents.java . > We worked, updated and moved to Groovy the methods "callPayPal", that > redirects customer to the PayPal payment gateway, and "payPalIPN", the > listener that send and receive asynchronously IPN messages to/from PayPal > servers. > > The original code was quite old and a good work of studying of the > documentation on PayPal development guides was required. > > Now the payment flow works well (both sandbox and production), customers > are paying with success and orders are auto processed, depending on IPN > messages. > > The only part that we are still developing is the service for crediting > back a transaction. > We are looking for sending the credit request to PayPal via a NVPRequest > (there is something on the online docs): could this be a good way? Is there > anyone who have had similar problems? > > Anyway we keep trying and I am at disposal and happy to give further > informations and explanations on the work done, to everyone interested in. > > Thanks to all for the attention and thanks in advance for any help or > suggestion. > > Giulio > |
In reply to this post by Giulio Speri - MpStyle Srl
Sounds like great work Giulio, I hope you get the chance to integrate some
of this work into the code base. On Jul 14, 2017 1:06 AM, "Giulio Speri - MpStyle Srl" < [hidden email]> wrote: Hello everyone, I'm writing because we have integrated PayPal as payment method for our eCommerce site (running on ofbiz 13.07.03), and I'd like to share the thing with the community. The request of integration of PayPal arrived to us after the eCommerce was already up and running, and since that the delivery time was quite short, me and my team chose to take and update the existing methods already present in OFBIZ, instead of integrate a complete new gateway (but this will be the future). As mentioned, we started from the PayPal java methods present in the accounting component, in PayPalEvents.java . We worked, updated and moved to Groovy the methods "callPayPal", that redirects customer to the PayPal payment gateway, and "payPalIPN", the listener that send and receive asynchronously IPN messages to/from PayPal servers. The original code was quite old and a good work of studying of the documentation on PayPal development guides was required. Now the payment flow works well (both sandbox and production), customers are paying with success and orders are auto processed, depending on IPN messages. The only part that we are still developing is the service for crediting back a transaction. We are looking for sending the credit request to PayPal via a NVPRequest (there is something on the online docs): could this be a good way? Is there anyone who have had similar problems? Anyway we keep trying and I am at disposal and happy to give further informations and explanations on the work done, to everyone interested in. Thanks to all for the attention and thanks in advance for any help or suggestion. Giulio |
In reply to this post by Pranay Pandey-3
Thank you very much Pranay,
I will have a better look to those services and go on trying. Have a good day, Giulo 2017-07-14 8:04 GMT+02:00 Pranay Pandey <[hidden email]>: > Hi Giulio, > > Glad to know that the solution reference worked for you. > Some more details on available integration- > > PayPal integration services implemented in OFBiz and available in 13.07. > You can refer services_paypal.xml for services already available for PayPal > and supports all the required methods- > Express Checkout, capture, void and refund. Implementation of these > services is done in PayPalServices.java. > > HTH. > > Best regards, > Pranay Pandey > > On Fri, Jul 14, 2017 at 3:35 AM, Giulio Speri - MpStyle Srl < > [hidden email]> wrote: > > > Hello everyone, > > > > I'm writing because we have integrated PayPal as payment method for our > > eCommerce site (running on ofbiz 13.07.03), and I'd like to share the > > thing with the community. > > > > The request of integration of PayPal arrived to us after the eCommerce > was > > already up and running, and since that the delivery time was quite short, > > me and my team chose to take and update the existing methods already > > present in OFBIZ, instead of integrate a complete new gateway (but this > > will be the future). > > > > As mentioned, we started from the PayPal java methods present in the > > accounting component, in PayPalEvents.java . > > We worked, updated and moved to Groovy the methods "callPayPal", that > > redirects customer to the PayPal payment gateway, and "payPalIPN", the > > listener that send and receive asynchronously IPN messages to/from PayPal > > servers. > > > > The original code was quite old and a good work of studying of the > > documentation on PayPal development guides was required. > > > > Now the payment flow works well (both sandbox and production), customers > > are paying with success and orders are auto processed, depending on IPN > > messages. > > > > The only part that we are still developing is the service for crediting > > back a transaction. > > We are looking for sending the credit request to PayPal via a NVPRequest > > (there is something on the online docs): could this be a good way? Is > there > > anyone who have had similar problems? > > > > Anyway we keep trying and I am at disposal and happy to give further > > informations and explanations on the work done, to everyone interested > in. > > > > Thanks to all for the attention and thanks in advance for any help or > > suggestion. > > > > Giulio > > > -- Giulio Speri *Mp Styl**e Srl* via Antonio Meucci, 37 41019 Limidi di Soliera (MO) T 059/684916 M 334/3779851 www.mpstyle.it |
In reply to this post by taher
Thank you Taher,
if I succeed to implement the refund operation the payment flow is complete and I will start to integrate the modifications into the base code, on my dev installation of ofbiz to test it. After that, if the community thinks that my work can be useful to improve ofbiz, I'll we be more than happy to share what I did and make it available for an integration :). Giulio 2017-07-14 9:33 GMT+02:00 Taher Alkhateeb <[hidden email]>: > Sounds like great work Giulio, I hope you get the chance to integrate some > of this work into the code base. > > On Jul 14, 2017 1:06 AM, "Giulio Speri - MpStyle Srl" < > [hidden email]> wrote: > > Hello everyone, > > I'm writing because we have integrated PayPal as payment method for our > eCommerce site (running on ofbiz 13.07.03), and I'd like to share the > thing with the community. > > The request of integration of PayPal arrived to us after the eCommerce was > already up and running, and since that the delivery time was quite short, > me and my team chose to take and update the existing methods already > present in OFBIZ, instead of integrate a complete new gateway (but this > will be the future). > > As mentioned, we started from the PayPal java methods present in the > accounting component, in PayPalEvents.java . > We worked, updated and moved to Groovy the methods "callPayPal", that > redirects customer to the PayPal payment gateway, and "payPalIPN", the > listener that send and receive asynchronously IPN messages to/from PayPal > servers. > > The original code was quite old and a good work of studying of the > documentation on PayPal development guides was required. > > Now the payment flow works well (both sandbox and production), customers > are paying with success and orders are auto processed, depending on IPN > messages. > > The only part that we are still developing is the service for crediting > back a transaction. > We are looking for sending the credit request to PayPal via a NVPRequest > (there is something on the online docs): could this be a good way? Is there > anyone who have had similar problems? > > Anyway we keep trying and I am at disposal and happy to give further > informations and explanations on the work done, to everyone interested in. > > Thanks to all for the attention and thanks in advance for any help or > suggestion. > > Giulio > -- Giulio Speri *Mp Styl**e Srl* via Antonio Meucci, 37 41019 Limidi di Soliera (MO) T 059/684916 M 334/3779851 www.mpstyle.it |
Free forum by Nabble | Edit this page |