3

We are working on mobile which use magento 2 REST API. In which we are facing issue while try to place order using Stripe payment method. For stripe we are using magenest stripe extension.

REST API call for guest user is : https://example.com/index.php/rest/V1/guest-carts/aHdNbZDggtknHuhZWwEfQvvHQz8JVZnb/order

Parameter is :

{
 "paymentMethod": {
 "additional_data":{
 "number": "4111111111111111",
 "exp_month": "10",
 "exp_year": "30",
 "cvv": "123",
 }
 "method": "magenest_stripe"
 }
}

Result

{
 "massage" : "No such token: false"
}

So please help us to fix this issue.

Muhammad Hasham
8,75211 gold badges53 silver badges105 bronze badges
asked Apr 17, 2019 at 17:26
6
  • Have you resolved your query? Commented Apr 22, 2019 at 7:17
  • Not yet, I am still looking for solution, Commented Apr 22, 2019 at 16:03
  • I wrote the two cases in answer why this issue occur. Have you checked and troubleshooted both cases? Commented Apr 22, 2019 at 16:06
  • @MuhammadHasham yes we have test it by both way but we are getting same error. Commented Apr 22, 2019 at 16:43
  • @MuhammadHasham do you think we have problem in request body? Commented Apr 22, 2019 at 16:44

1 Answer 1

0

Case 1

This is an issue with your integration and not the code or the library and the best solution for this is to double check your API keys. You are likely creating a token with the Publishable key from one account and then trying to use it with the Secret key of another account.

Case 2

Another case of this error usually appears when you are connected to Stripe via Test mode, but with your Live settings.

I hope this will help

answered Apr 18, 2019 at 6:30

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.