Nightly payment capture batch job

Code reviewMedium20 minStripe and PayPal style

Your task

At checkout your shop only authorizes a card (holds the amount), and this job captures the money (actually takes it) each night, about 30,000 payments. Captures that fail are retried the next night.

What do you flag before this ships?