This question has been flagged
3 Replies
4055 Views

Hello,

I am trying to make a small Ecommerce Website for my non-profit association. I have set up a product, paypal module and ia am able to make an order.

My problem is to produce an invoice directly on paypal return when payment is ok.

Now, payment is ok with paypal but in Odoo it stays at pending and quotation stays on draft.

How can i make it works as i want ?

Thank you and excuse for my bad english.

Nicolas

Avatar
Discard

No one will be blamed for his/her knowledge with a foreign language:) Just a comment regarding the usage of Paypal for a french company or association: Yesterday my bank informed me that they were able to secure any ecommerce website: It is just a matter of technical (IT) that they are able to setup between their infrastructure and the one of the ecommerce. They explained that every bank is providing the same service (including the most secure level) to their clients. Conclusion: no need to use services like Paypal or any other equivalent third-party which are positionning themselves between a company and its bank. They were useful at a time when the banks had not yet taken all the necessary steps to address the needs for ecommerce transactions. this is no more the case. At least for France.

Author Best Answer

Thank you very much, I have set up this addon and now i have a progress : Payment Transactions is Pending and Quotation is marked as Sent.

I think there is something wrong with Paypal IPN notification from paypal to Odoo.

Can anyone tell me the good ipn notufy URL ? i have set up https://www.mywebsite.com/payment/paypal/ipn and activate it on paypal sandbox.

Thank you

[Edit]

Ok it works now ! :)

First was to set up Addon
Second was to set up UTF-8 as encoding in paypal website
Third was to set the same email in Payment Acquirers\Paypal as default email in Paypal. In my case i have 2 aliases, it must be the same as default email and odoo setup.

Thank you for help me

 

Avatar
Discard
Best Answer

Thanks to the answer above from TK.  Just discovered that my assumption on the standard business logic for the payment process is wrong.

Anyway, there is another good blog on the paypal issue with respect to the charset used by PayPal which causes Odoo not to accept the response from PayPal.  The link is below:

http://bloopark.de/en_US/blog/the-bloopark-times-1/post/paypal-and-odoo-stumbling-blocks-107

Avatar
Discard
Best Answer

Hi, 

Please ref the below github issue.. 

https://github.com/odoo/odoo/issues/768

By default successful paying with paypal, converts quote to sales order and moves it to "Sales Order" state. Is it a case for you also?

 Quotations being stuck in the draft state, and it started working after I removed "merchant id" from the paypal configuration (having only email set) and it started working.

https://github.com/yelizariev/addons-yelizariev/tree/master/website_sale_autopay

The above Add-on change sales order to invoice (not quotation to invoice). 

 

Avatar
Discard