question

sreekant avatar image
sreekant asked David Marginian Deactivated 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

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

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated commented

Are you certain you aren't making two requests?

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

sreekant avatar image sreekant commented ·

Yes, I made one request only.

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

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 ♦♦ commented ·

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