#LOCAL("ShowBothTabPages", NOT(#UseSPAPIAccount))
#IF(#ShowBothTabPages)
{MWSSettings}
#ENDIF #WITH_ERROR(#FormError)
#IF(#FormError) #LOCAL("UnspecifiedError",1) #IF(#COUNT(#FormErrors.Form.LoginData.Errors))#SET("UnspecifiedError",0)#ENDIF
#LOOP(#FormErrors.Form.LoginData.Errors) #IF(#Reason EQ "LoginFailed")

{LoginFailed}

{PleaseCorrectYourLoginDetails}

#ELSIF(#Reason EQ "InvalidMerchantToken")

{LoginFailed}

{PleaseCorrectYourToken}

#ELSIF(#Reason EQ "LoginMWSFailed")

{LoginFailed}

{PleaseCorrectErrors}

#ELSE #SET("UnspecifiedError",1) #ENDIF #ENDLOOP #IF(#UnspecifiedError)

{InputError}

{PleaseCorrectErrors}

#ENDIF
#ENDLOCAL #ENDIF #IF(#OAuthSuccess)
{OAuthSuccess}
#ELSIF(#INPUT.OAuthReturn)
{OAuthFailed}
#ENDIF #IF(#ShowBothTabPages)

{Info0}

  1. {Info1} {CreateNewAmazonAccount}
  2. {Info2}
  3. {Info3} {ToAmazonAdministration}
  4. {Info4} {ClickSave}
  5. {Info5} {Info5_1} {ClickSave}
{RegisterDataInfo}
{MerchantEMail} {MandatoryStar}
{Password} {MandatoryStar}
{MerchantToken} {MandatoryStar}
#ENDIF

{Info0}

  1. {Info1} {CreateNewAmazonAccount}
  2. {Info2SPAPI}
  3. {Info3} {ToAmazonAdministration}
  4. {Info10MWS}
  5. {Info11MWS}
  6. {Info12MWS}
#REM #ENDREM #IF(#RefreshTokenExpiry)
{RegisterDataInfo}
{RefreshTokenExpiry} {MandatoryStar}
{RefreshTokenExpiryNote}

{MWSSendMailSettings}
{MWSSendMail}
#ENDIF #IF(#ShowBothTabPages)
#ENDIF
#IF(#RefreshTokenExpiry) #ENDIF #IF(#PortalSite.SPAPI_ApplicationID) #ENDIF
#ENDWITH_ERROR
#IF(#ShowBothTabPages) #ENDIF #ENDLOCAL