At the counter
Your app sends the total to the pharmacy's Poynt device, the Poynt Duo or the Poynt Terminal. Nothing is installed on the device. The screen shows the amount at once, and the customer taps, inserts or swipes. The result comes back as the payment's state and a webhook event, with a hosted receipt link.
A device takes one payment at a time, so a second payment sent to a busy device is refused and names the one in progress. A pharmacy with a counter and a drive-through window can register a device for each.