Answers.Body: <p>You have a variable name collision. You must change your <a href="https://craftcms.com/docs/config-settings#tokenParam" rel="nofollow noreferrer">Craft token</a> name to something else, as per <a href="https://craftcommerce.com/docs/payment-gateways#paypal-express" rel="nofollow noreferrer">documentation</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-17T14:30:36.307Z
Answers.Text: Thank you so much Andris, and I'm so sorry for not reading the docs fully.
Answers.UserDisplayName: Jeff Pullinger
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-17T12:04:17.697Z
Answers.LastActivityDate: 2017-10-17T12:04:17.697Z
Answers.UserDisplayName: Andris Sevcenko
Body: <p>I'm trying to use Paypal Express with Craft Commerce. 
  It sends us Paypal's login page correctly, with the right amounts, but when you click pay it returns us to this URL:</p>
  
  <pre><code>/index.php/actions/commerce/payments/completePayment?commerceTransactionId=43&amp;commerceTransactionHash=cbcad33abe2cf99ea63c8ee49c0ee9af&amp;token=EC-0N649078HJ025430W&amp;PayerID=VAWBVKWL78DHN
  </code></pre>
  
  <p>but shows a 404 error with no other errors</p>
  
  <p>I've tried using the show errors code mentioned in this post: 
  <a href="https://craftcms.stackexchange.com/questions/19090/handoff-to-paypal-express-with-craft-commerce">Handoff to Paypal Express with Craft Commerce</a></p>
  
  <p>and I've tried it with Stripe which fully works. </p>
  
  <p>There are no log error logs in PHP or Craft's logs, just a 404. </p>
  
  <p>I've tried changing different products, different shipping types, I've uninstalled all other plugins. </p>
  
  <p>It just fails with Paypal, and works with Stripe. </p>
  
  <p>Any ideas?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-17T17:40:46.693Z
Comments.Text: No problem, Jeff... just my OCD kicking in.
Comments.UserDisplayName: Brad Bell
Tags: <plugin-craftcommerce>
Title: Paypal Express shows a 404 error when returning to Commerce's completePayment endpoint
ThreadText: # Paypal Express shows a 404 error when returning to Commerce's completePayment endpoint
  
  (Asked by: username_0 on 2017-10-16)
  
  I'm trying to use Paypal Express with Craft Commerce.
  It sends us Paypal's login page correctly, with the right amounts, but when you click pay it returns us to this URL:
  
  ```
  /index.php/actions/commerce/payments/completePayment?commerceTransactionId=43&commerceTransactionHash=cbcad33abe2cf99ea63c8ee49c0ee9af&token=EC-0N649078HJ025430W&PayerID=VAWBVKWL78DHN
  
  ```
  
  but shows a 404 error with no other errors
  
  I've tried using the show errors code mentioned in this post:
  [Handoff to Paypal Express with Craft Commerce](https://craftcms.stackexchange.com/questions/19090/handoff-to-paypal-express-with-craft-commerce)
  
  and I've tried it with Stripe which fully works.
  
  There are no log error logs in PHP or Craft's logs, just a 404.
  
  I've tried changing different products, different shipping types, I've uninstalled all other plugins.
  
  It just fails with Paypal, and works with Stripe.
  
  Any ideas?
  
  **Tags:** plugin-craftcommerce
  
  > **Comments:**
  > **username_1**: No problem, username_0... just my OCD kicking in.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-10-17. Score: 4 | Accepted answer
  
  You have a variable name collision. You must change your [Craft token](https://craftcms.com/docs/config-settings#tokenParam) name to something else, as per [documentation](https://craftcommerce.com/docs/payment-gateways#paypal-express)
  
  > **Comments:**
  > **username_0**: Thank you so much username_2, and I'm so sorry for not reading the docs fully.  
  
  ---
  
  