#IF(#FormErrors.Form.SagePayTestSettings)
{TestResult}
#LOOP(#FormErrors.Form.SagePayTestSettings.Errors)
#IF(#Name EQ "ConnectionError")
{ConnectionError}
#ELSIF(#Name EQ "TxTypeNotSupported")
#LOCAL("MsgTransType", "")
#IF(#Reason EQ "PAYMENT")#SET("MsgTransType", "{Capture}")#ELSIF(#Reason EQ "AUTHENTICATE")#SET("MsgTransType", "{Authorization}")#ELSIF(#Reason EQ "DEFERRED")#SET("MsgTransType", "{TTDeferred}")#ENDIF
{TxTypeNotSupported}
#ENDLOCAL
#ELSIF(#Name EQ "InvalidIPaddress")
{InvalidIPaddress}
#ELSIF(#Name EQ "InvalidVendorName")
{InvalidVendorName}
#ELSIF(#Name EQ "CurrencyNotInProfile")
{CurrencyNotInProfile}
#LOOP(#CurrencyNotInProfile)- #Currency
#ENDLOOP
#ELSIF(#Name EQ "OtherFailure")#Reason
#ELSE#Reason
#ENDIF
#ENDLOOP
#ELSE
{InputError}
{PleaseCorrectErrors}
#ENDIF