question

varun avatar image
varun asked Jeffrey Blattman answered

Order Total is not updating when I created custom item with negative price from clover sdk

Hi Guys,I was trying to build an application for payouts in clover,when i created custom Lineitem with negative price order total is not updating,Is there any solution for updating Order total.

Clover Android SDKSandboxRefundLineItems
custom.png (39.8 KiB)
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

·
Jeffrey Blattman avatar image
Jeffrey Blattman answered
It's entirely up to the client (you) to update all aspects of the order. Our cloud is "dumb" in this respect. It is essentially storage for orders. If you add a line item, you must calculate the new order total and tell the cloud.

This will help:
https://docs.clover.com/clover-platform/docs/working-with-orders#section--calculating-order-totals-
10 |2000

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

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