title: Odoo 10 with paypal integration not return paid status to confirm sale order?
body: <p>I got the issue with Paypal integration with Odoo 10. After payment from paypal site, it cannot return to Odoo with confirmed status for Sale Order.
  I have configured with test environment:</p>
  
  <p><a href="https://i.stack.imgur.com/zVvo2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zVvo2.png" alt="This is credentials"></a></p>
  
  <p><a href="https://i.stack.imgur.com/rX1Zi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rX1Zi.png" alt="This is pdt token"></a></p>
  
  <p>This is the form Odoo submit to sandbox.paypal.com:</p>
  
  <pre><code>&lt;form method="post" target="_self" action="https://www.sandbox.paypal.com/cgi-bin/webscr"&gt;
              &lt;input type="hidden" name="cmd" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[1]" value="_xclick"&gt;
              &lt;input type="hidden" name="business" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[2]" value="jeff@ntstiresupply.com"&gt;
              &lt;input type="hidden" name="item_name" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[3]" value="NTS Tire Supply, LLC: /"&gt;
              &lt;input type="hidden" name="item_number" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[4]" value="/"&gt;
              &lt;input type="hidden" name="amount" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[5]" value="83.0"&gt;
              &lt;input type="hidden" name="handling" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[6]" value="0.00"&gt;
              &lt;input type="hidden" name="currency_code" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[7]" value="USD"&gt;
              &lt;input type="hidden" name="address1" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[8]" value=""&gt;
              &lt;input type="hidden" name="city" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[9]"&gt;
              &lt;input type="hidden" name="country" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[10]" value="US"&gt;
              &lt;input type="hidden" name="email" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[11]" value="sb-alu2m658701@business.example.com"&gt;
              &lt;input type="hidden" name="first_name" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[12]" value=""&gt;
              &lt;input type="hidden" name="last_name" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[13]" value="abc"&gt;
              &lt;input type="hidden" name="zip" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[14]"&gt;
  
              &lt;input type="hidden" name="custom" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[16]" value="{&amp;quot;return_url&amp;quot;: &amp;quot;/quote/31879/7a63e797-9cde-4c43-a4d9-d4736d1fc4e9&amp;quot;}"&gt;
              &lt;input type="hidden" name="return" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[17]" value="http://localhost:8069/payment/paypal/dpn/"&gt;
              &lt;input type="hidden" name="notify_url" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[18]" value="http://localhost:8069/payment/paypal/ipn/"&gt;
              &lt;input type="hidden" name="cancel_return" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/input[19]" value="http://localhost:8069/payment/paypal/cancel/"&gt;
              &lt;button type="submit" width="100px" class="btn btn-primary"&gt;
  
                  &lt;span&gt;Pay &amp;amp; Confirm &lt;span class="fa fa-long-arrow-right" data-oe-id="5080" data-oe-model="ir.ui.view" data-oe-field="arch" data-oe-xpath="/t[1]/form[1]/button[1]/span[1]/span[1]"&gt;&lt;/span&gt;&lt;/span&gt;
              &lt;/button&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>But after payment, I click on Return Merchant ('/payment/paypal/ipn/') , Odoo log here with post data = {}.</p>
  
  <blockquote>
    <p>2019-12-05 21:14:40,677 5648 INFO 20190725_2
    odoo.addons.payment_paypal.controllers.main: Beginning Paypal DPN
    form_feedback with post data {} 2019-12-05 21:14:44,484 5648 WARNING
    20190725_2 odoo.addons.payment_paypal.controllers.main: Paypal:
    answered INVALID/FAIL on data verification</p>
  </blockquote>
  
  <p>I followed this post <a href="https://www.odoo.com/documentation/user/10.0/ecommerce/shopper_experience/paypal.html" rel="nofollow noreferrer">here</a> but it did not work.</p>
  
  <p>So, did I misconfigured something?</p>