question

jms avatar image
jms asked jms commented

404 Ecommerce Payment Failures

Hi, recently one of our customers seems the have trouble paying for an order using the e-commerce API with the iFrame integration.

The response from clover e-commerce is as follows:

{"message":"404 Not Found","error":{"type":"invalid_request_error","code":"invalid_request","message":"Invalid token or token not found"}}

We use the iFrame integration to generate a tokenized card which we in turn use to pay for the order using the /v1/orders/<orderId>/pay endpoint.

It doesn't seem like anything is amiss in our integration. Can you please look into why these payments are failing?

Thank You

e-commerce api
5 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

01928-7325x2 avatar image 01928-7325x2 commented ·

Did you try to make payment for order created through Clover order API?

If yes, you may need to use this payment endpoint: https://docs.clover.com/reference#postordersidpay


0 Likes 0 ·
jms avatar image jms 01928-7325x2 commented ·

Yes ydev. The /v1/orders/<orderId>/pay mentioned in the question is this the one you mentioned

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ jms commented ·
Can you provide a bit more context? Is this a new customer for your app and they haven't been able to make a single payment or have them been taking payments and it just stopped working? If so, when did it stop working?
0 Likes 0 ·
Show more comments

1 Answer

David Marginian avatar image
David Marginian Deactivated answered jms commented

We looked into this and it looks like a different developer app (token) was used between the token creation and the payment. That won't work, they must be the same.

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jms avatar image jms commented ·

Thank you David. Seems there was an issue in our integration.

0 Likes 0 ·

Welcome to the
Clover Developer Community