How do I incorporate conditions into a payment field