<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>

CC BY-SA 3.0
2017-10-17T14:30:36.307Z
Thank you so much Andris, and I'm so sorry for not reading the docs fully.
Jeff Pullinger
CC BY-SA 3.0
2017-10-17T12:04:17.697Z
2017-10-17T12:04:17.697Z
Andris Sevcenko
<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>

CC BY-SA 3.0
2017-10-17T17:40:46.693Z
No problem, Jeff... just my OCD kicking in.
Brad Bell
<plugin-craftcommerce>
Paypal Express shows a 404 error when returning to Commerce's completePayment endpoint
# 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
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, Jeff... 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 Andris, and I'm so sorry for not reading the docs fully.  

---

