Odoo Help


What is the intended function of the PayPal IPN handler?

Matt Taylor
on 11/5/14, 11:54 PM 3,477 views

What is the PayPal IPN processor intended to do?  I assumed that it would create a Payment Transaction record (Settings -> Payments -> Payment Transactions) using the data in the PayPal Instant Payment Notification.  Instead, the PayPal module tries to find an existing transaction that matches the notification coming from PayPal.  Since the transaction doesn't exist, I get an error message:

ERROR  openerp.addons.payment_paypal.models.paypal: Paypal: received data for reference SAJ/2014/0406; no order found

How are Payment Transaction records created, if not from the IPN data?

I'm using 8.0, and testing with master.

The only calls to the create() method self-test code. Am I required to write some code to get this working?

Matt Taylor
on 11/7/14, 8:31 AM

I see some s2s (server2server) methods, but I don't see any code that calls them. Is there some documentation for how this should be used? Do I need some other module?

Matt Taylor
on 11/10/14, 12:00 PM

There are a lot of people that report success with this feature. How do they do it? Can't some one give me a clue? Just a little hint? Maybe I am asking the wrong question. Do I need to clarify what I am asking?

Matt Taylor
on 11/11/14, 4:55 PM

I have customers using the portal to pay multiple invoices. They need some indication of which invoices have been paid, so they don't try to pay them twice.

Matt Taylor
on 11/12/14, 12:38 PM

Fabrice Henrion (fhe)

--Fabrice Henrion (fhe)--
| 7 7 9
San Francisco, United States
--Fabrice Henrion (fhe)--

Director Odoo Americas

Fabrice Henrion (fhe)
On 11/11/14, 9:20 PM

1. It highly depends on the exact version of Odoo that you are using: v7-SaaS3? SaaS4? SaaS5? Odoo trunk pre-v8-release? Odoo 8 final?
2. Did you configure your Paypal account to send the IPN?
3. When Odoo receives the IPN message from Paypal, Odoo will change the existing payment transaction's status from Draft to Done. The payment transaction is initially created in Draft before the payment is successful (known via IPN); depending on which exact version of Odoo you are using, this payment transaction could be created when a visitor clicks on the last "Buy" button in the Odoo checkout process, or at a different time.

Okay, Thanks Fabrice. I'm really not doing e-commerce. My customers click the PayPal button on the invoice in the customer portal. So, do I need to write some code to create the transaction when the customer clicks the PayPal button? It's probably easier to just call the create method when I receive the IPN. I'll use the IPN data to create and complete the transaction. Unless you have a better way.

Matt Taylor
on 11/12/14, 12:34 PM

I'm in the same situation as @Matt. Can the PayPal Acquirer be setup to automatically record, and reconcile payments customers make via PayPal from the link included in the emails we manually send for invoices from Odoo v8 Final? Also, those links don't respect the settings we configure for any added fees for the PayPal payments. Did you find a solution @Matt?

Cliff Kujala
on 11/11/15, 7:44 PM
Anton Chepurov
On 8/31/16, 4:33 AM


How did you end up solving this?

UPD: this could be helpful, as a nice starting point:


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/5/14, 11:54 PM
Seen: 3477 times
Last updated: 8/31/16, 12:55 PM