When you return a device bought through the Apple Card, all further installments are canceled, and you’re charged for the 3% Daily Cash you received through your Apple Card.
The amount you had already paid in the previous installments is credited to your Apple Card.