question

robsmitha avatar image
robsmitha asked robsmitha answered

ACTION_CLOVER_PAY intent closes when started immediately after a line item is added via REST API

We are using the ACTION_CLOVER_PAY intent in our fully integrated app to accept an additional payment on an existing order that had line items added via the REST API. The payment screen shows briefly but then closes and resumes in our app.

I suspect the following is happening.

  1. We have a paid clover order.
  2. Line item is added to that order via the REST API (making it partially paid)
  3. ACTION_CLOVER_PAY intent is started immediately after the item is added.
  4. The payment screen closes because the order has not caught up with the line item update from the REST API.


Is there a way we can manually trigger the order in the clover device to refresh it's data from the server so the new line item will be present and the user can add the payment for the new line item? Or do you suspect something else is going on?


NOTE: Opening the ACTION_CLOVER_PAY intent a second time or waiting a couple seconds then opening the ACTION_CLOVER_PAY intent works fine. This is why I suspect the order in the clover device is not being updated.


Thanks for the help.

OrdersREST APILineItemsFAQ
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

robsmitha avatar image
robsmitha answered
10 |2000

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