#WITH_ERROR(#FormError)
#IF (#FormError)

{InputError}

#IF(#FormErrors.Reason.OBJECT_EXISTS) {ObjectExists} #ELSIF(#FormErrors.Reason.FEATURE_LIMIT_EXCEEDED) {FeatureMaxValueReached} #ELSIF(#FormErrors.Reason.NOTHING_SELECTED) {NewPaymentMethodNothingSelected} #ELSE {PleaseCorrectErrors} #ENDIF

#ENDIF #IF(#SetInvisible)

{Notification}

{SetPaymentMethodInvisible}

#ENDIF #IF(#NewPaymentMethods)

{NewPaymentMethodsCreated}

#LOOP(#NewPaymentMethods)

#Attributes.Alias

#ENDLOOP
#ENDIF
#INCLUDE("INC-SetupGuide")
#IF(#PaymentType.Alias EQ "Ogone") Ogone #ELSIF(#PaymentType.Alias EQ "Postfinance") PostFinance #ELSIF(#PaymentType.Alias EQ "Acceptance") Acceptance #ENDIF
{RegisterDataInfoTest}
PSPID #IF(#IsInTestMode){MandatoryStar}#ENDIF
{Password} #IF(#IsInTestMode){MandatoryStar}#ENDIF
{Passphrase} #IF(#IsInTestMode){MandatoryStar}#ENDIF
{APIUser}
{APIUserPassword}

{RegisterDataInfoLive}
PSPID #IF(NOT #IsInTestMode){MandatoryStar}#ENDIF
{Password} #IF(NOT #IsInTestMode){MandatoryStar}#ENDIF
{Passphrase} #IF(NOT #IsInTestMode){MandatoryStar}#ENDIF
{APIUser}
{APIUserPassword}

{PaymentMethod}

{PaymentSettings}
{Mode}

#IF(#PaymentType.Alias EQ "Postfinance") {NewOgoneMethod}

{NewPostfinanceMethodInfo}

#ELSIF (#PaymentType.Alias EQ "Acceptance") {NewOgoneMethod}

{NewAcceptanceMethodInfo}

#ELSE {NewOgoneMethod}

{NewOgoneMethodInfo}

#ENDIF #IF( ((#MerchantName AND #MerchantPassword AND #Passphrase) OR (#MerchantNameTest AND #MerchantPasswordTest AND #PassphraseTest)) AND (#Shop.FeatureMaxValue.PaymentMethods > #Shop.FeatureCurrentValue.PaymentMethods))
{NewOgoneMethod} {NewOgoneMethod}
#LOCAL("CNT",0)#LOCAL("CURRENT_GROUP_COUNT",0) #LOOP (#SplitGatewayMethods) #WITH_ERROR(#FormError)#SET("ErrorItemNo",0) #SET("CNT",#CNT+1) #IF (#isGroup) #SET("CURRENT_GROUP_COUNT",#GrpCount+1) #IF((#CURRENT_GROUP_COUNT > (#SplitGatewayMethods_MaxRows - #CNT) ) AND #CNT > 1) #SET("CNT",0)#ENDIF #IF (#CNT > 1)

 #SET("CNT",#CNT+1)

#ENDIF

#Name

#ELSE

#IF(#UIName)#UIName#ELSE#Name#ENDIF

#ENDIF #ENDWITH_ERROR #ENDLOOP #ENDLOCAL
#ENDLOCAL
#ENDIF
{SelectMethods}
#LOOP(#Logos) #IF(#PaymentLogo.Image)
#ENDIF #ENDLOOP
#ENDWITH_ERROR #IF(#FUNCTION("MENU_COUNT", "RelatedTopic") > 0)

{RelatedTopics}

#ENDIF