question

davisre avatar image
davisre asked Jeffrey Blattman answered

We get duplicate PAYMENT_PROCESSED broadcasts when using the merchant keypad

When we have a merchant keypad connected to a Clover Mini, our app gets two PAYMENT_PROCESSED broadcasts for the same payment: once immediately after the customer signs (but before the merchant accepts the signature) and again after the customer hits the No Receipt button.

Is this intentional??

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

Without going into too many details, yes, it's expected. We broadcast this whenever the payment is added to the order, which can happen on both the merchant keypad and the terminal components. You'll want to ensure your logic for this broadcast is idempotent.

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