question

James Tickett avatar image
James Tickett asked steve-egan answered

Which Broadcast should I use to check when an Order is fully paid?

I was previously using ACTIONPAYMENTPROCESSED, but I've just realised that this is triggered when a part-payment is made too. I can see ACTIONORDERCREATED, and ACTIONORDERSAVED in the sdk docs, but nothing like "ACTIONORDERCOMPLETE" that I'd expected.

How can I move back into my app once an Order is fully paid?

OrdersIntentsBroadcasts
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

steve-egan avatar image
steve-egan answered

Hi JTickett,

I had this problem myself. To get around it I implemented the OrderConnector.OnOrderUpdateListener2 interface. For this interface you can provide an implementation of the onPaymentProcessed(final String orderId, String paymentId) method. Here you can query all the Payments attached to an order and if the total of the payments equals the order total then the order is paid in full. Hope this helps.

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