question

Nimila Hiranya avatar image
Nimila Hiranya asked Nimila Hiranya commented

Clover Ecomm Payment with Tip shows as Partially Paid

We are using the Clover API to create an Order and the making the Payment for it using the EComm APIs.

Order Amount: 7.35

Tip Amount: 2.65

Total: 10.00

Order ID: KR9H0G5R9XKB6 | Reciept: https://sandbox.dev.clover.com/r/KR9H0G5R9XKB6

Payment Request:

{
   "amount":735,
   "currency":"USD",
   "source":"clv_1TSTSXuLnenP8HyuAQWVWVdX",
   "tip_amount":265,
   "stored_credentials":{
      "sequence":"SUBSEQUENT",
      "initiator":"CARDHOLDER",
      "is_scheduled":false
   }
}

And yet the order status is returned as "created" and it's being showed as "Partially Paid". Why is this? What are we doing wrong?

e-commerce api
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 Nimila Hiranya commented

Are you setting the order total? If so, the total should not include tip.

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

Nimila Hiranya avatar image Nimila Hiranya commented ·

As you can see in the request object, total and tip are separate. "amount":735 and "tip_amount":265. And full amount charged should be 10.00

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ Nimila Hiranya commented ·

The issue is that when you are creating the order you are making an update order request and setting the total to 1000 (back on May 25th). The total on the order should NOT include tip.

1 Like 1 ·
Nimila Hiranya avatar image Nimila Hiranya David Marginian ♦♦ commented ·
Hi David, yes this was the issue. Thanks for the update. Cheers.
0 Likes 0 ·

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