The token passed in was not found in the system

armonis
Contributor
Contributor

We have an e-shop based on CS-Cart (v.4.17.2) that has integrated 2 x PayPal add-ons. The standard "PayPal Payments" and the new "PayPal Checkout". We presume that the new version is using v2 API but not completely sure.

 

We have created both a sandbox and a live App in the Developers Dashboard. By the way, there was a nice step-by-step wizard that we used the first time and after we pressed the X at the upper right corner, it was gone and we could not get it back.

 

When testing within the sandbox, the system works fine. When we switch to the live environment and we click on the PayPal Express yellow button, we get the following error:

The token passed in was not found in the system

 

How can we fix this? I have checked the PHP files of the add-on and the URLs are correct both for the sandbox and the live environment.

 

I have also created a webhook based on the recommendation of the add-on but we get the same problem.

 

Best regards,

Nickolas [removed]

 

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

armonis
Contributor
Contributor

Hi Kavya!

Thank you for your time replying to my post. I have already opened a ticket for the issue.

After playing around, I found the solution to the problem.

CS-Cart developer company has created 2 different add-ons that are native to every installation:

1. PayPal Payments

2. PayPal Checkout

 

The first one is the "legacy" add-on and the later has been announced recently inside the changelog of the 4.7 version.

 

We have been using the first add-on with the old credentials until recently. We installed the Checkout which has v2 REST API support and faced the problem described initially.

 

The solution was to uninstall both of the add-ons and install again the PayPal Checkout. Using the Live credential worked like a charm!

 

I presume that there was a conflict between the two add-ons when installed together.

 

Unfortunately, CS-Cart does not have any documentation for the PayPal Checkout add-on and hopefully, this post will help other people like me!

 

Thank you very much for your time and I wish you a happy and healthy 2024!

 

Best regards,

Nickolas [removed]

View solution in original post

Login to Me Too
2 REPLIES 2

Kavyar
Moderator
Moderator

Good day @armonis 

 

Thank you for posting to the PayPal community.

 

I kindly suggest you check the API credentials you are currently using. It is important to note that your LIVE account API credentials can only be used within your LIVE environment, while your sandbox account API credentials can only be used within your sandbox environment. The credentials are not interchangeable between the two environments.

 

I would suggest to please contact your website developer or the third party eCommerce support to cross check your using same SANDBOX/LIVE  REST API Credentials(Client ID & Secret) while performing the below API calls.

 

https://developer.paypal.com/api/rest/authentication/

https://developer.paypal.com/api/rest/postman/ 

 

If your still facing issues, please create an MTS ticket via -  https://www.paypal-support.com/s/?language=en_US  with the detailed information and error details.

 

Sincerely,

Kavya

PayPal MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too
Solved

armonis
Contributor
Contributor

Hi Kavya!

Thank you for your time replying to my post. I have already opened a ticket for the issue.

After playing around, I found the solution to the problem.

CS-Cart developer company has created 2 different add-ons that are native to every installation:

1. PayPal Payments

2. PayPal Checkout

 

The first one is the "legacy" add-on and the later has been announced recently inside the changelog of the 4.7 version.

 

We have been using the first add-on with the old credentials until recently. We installed the Checkout which has v2 REST API support and faced the problem described initially.

 

The solution was to uninstall both of the add-ons and install again the PayPal Checkout. Using the Live credential worked like a charm!

 

I presume that there was a conflict between the two add-ons when installed together.

 

Unfortunately, CS-Cart does not have any documentation for the PayPal Checkout add-on and hopefully, this post will help other people like me!

 

Thank you very much for your time and I wish you a happy and healthy 2024!

 

Best regards,

Nickolas [removed]

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.