question

sreekant avatar image
sreekant asked David Marginian commented

Why duplicate transactions in same order?

device-2021-02-18-164953.pngHi,

I am using payment API for making payment for an order but i got an issue which is occurring randomly. I attached the image.


API request and response for the attached image.

Request: https://apisandbox.dev.clover.com/v3/merchants/J5NBJXRB1DNZ8/orders/55K6F7D91J9B6/payments?access_token=redacted

Response:

{"id":"J57G5FNVJV2XM","order":{"id":"55K6F7D91J9B6"},"tender":{"href":"https:\/\/sandbox.dev.clover.com\/v3\/merchants\/J5NBJXRB1DNZ8\/tenders\/246DZNMS605NR","id":"246DZNMS605NR"},"amount":757,"employee":{"id":"S48JPDMRW0K7W"},"createdTime":1613598138000,"clientCreatedTime":1613598138000,"modifiedTime":1613598138000,"result":"SUCCESS","note":"00000339 TXN from Parent device : C053UQ02460375"}


OrdersPayments
10 |2000 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
David Marginian avatar image
David Marginian answered David Marginian commented

Are you certain you aren't making two requests?

10 comments
10 |2000 characters needed characters left characters exceeded

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

Yes, I made one request only.

0 Likes 0 ·

You make this call from the device? When do you make the call to create the payment record?

0 Likes 0 ·
sreekant avatar image sreekant David Marginian ♦♦ ·

Yes, we used station 2018 (Serial No. C053UQ02460375).

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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

Welcome to the
Clover Developer Community