function toggleButton(actions) { return isValid() ? actions.enable() : actions.disable(); } // Render the PayPal button