#WITH_ERROR(#FormError) #IF( NOT #AreMandatoryFieldsSet)

{RequiredBillingAddressFieldsForPayment} {EMail}, {FirstName}, {LastName}, {Street}, {Zipcode}, {City}, {Country}
{EditRegistrationSet}
{EditShippingAdressFormFields}

#ENDIF #IF(#NewPaymentMethods)

#IF(#COUNT(#NewPaymentMethods) NEQ 1){NewPaymentMethodsCreatedSingular}#ELSE#SPACE[0]{NewPaymentMethodsCreatedPlural}#ENDIF

#LOOP(#NewPaymentMethods)

#Attributes.Alias

#ENDLOOP
#ENDIF #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

#REM #ENDREM #ELSIF(#Shop.FeatureMaxValue.PaymentMethods NEQ #Shop.FeatureCurrentValue.PaymentMethods)
{FeatureMaxValueReached}
#ENDIF #IF(#MollieConnectionError)

{Warning}

{ConnectionErrorRetryLater}

#REM #ENDREM #ENDIF #IF(#SetInvisible)

{Notification}

{SetPaymentMethodInvisible}

#ENDIF #IF(#IsTokenSet AND (NOT #IsActivated) AND #DEFINED(#Method) )

{Notification}

{SetVisible}

#ENDIF #IF(#Shop.FeatureMaxValue.MollieLimited)

{Notification}

{NotificationCanUseMorePaymentMethods}

#ENDIF
#IF(NOT #IsTokenSet)

{Info0Before}

#ELSE

{Info0After}

#ENDIF
    #IF(NOT #IsTokenSet)
  1. {Info1Before} {MolliePaymentsInfo1Link}

  2. #ELSE
  3. {Info1After}

  4. #REM#ENDREM #LOCAL("MollieAllPaymentMethodsUsed", 0) #LOCAL("PaymentsCount", 0) #IF(#Shop.FeatureMaxValue.MollieLimited) #LOOP(#Shop.PaymentMethods) #IF(#Class.Alias EQ "PaymentMethodMolliePayments") #SET("PaymentsCount", #PaymentsCount + 1) #ENDIF #ENDLOOP #LOCAL("MollieLimitedPaymentMethods", #MollieLimitedPaymentMethods(#System.Object)) #IF(#COUNT(#MollieLimitedPaymentMethods) <= #PaymentsCount) #SET("MollieAllPaymentMethodsUsed", 1) #ENDIF #ENDLOCAL #REM#ENDREM #ENDIF #IF((NOT #PaymentsCount) OR (NOT #MollieAllPaymentMethodsUsed))

    {Info2}#IF( #CanReplicatePayment AND (#Shop.FeatureMaxValue.PaymentMethods > #Shop.FeatureCurrentValue.PaymentMethods)) {NewMolliePaymentsMethod}#ENDIF

    #ENDIF #ENDLOCAL #REM#ENDREM #ENDLOCAL #REM#ENDREM

    {Info3}

    #ENDIF
#INCLUDE("INC-StatusMolliePayments") #INCLUDE("MollieMultiPaymentsDialogScript")
#IF(NOT #ProfileId OR NOT #Method) #ENDIF
#ENDWITH_ERROR