twig-checkout-child: Extract prompt logic