Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def value_validator(phoneNumber, amount, currency_code):
if not validate_phone(phoneNumber):
return 'Invalid phone number'
elif not validate_amount(amount):
return 'Invalid amount'
elif not validate_currency(currency_code):
return 'Invalid currency code'
else:
return False