Is it possible to optionally require a payment block based on a previous selection?

Yes, you can use Youform's logic builder to conditionally show and require the payment block.