{UnityAddPaymentMethod}

{PoweredByMolliePaymentsLogo}

#LOCAL("MollieLimitedPaymentMethods", #MollieLimitedPaymentMethods(#System.Object)) #LOCAL("IsMolliePaymentsFirst", 0) #LOOP( #PaymentMethods ) #IF(#Class.Alias EQ "PaymentMethodMolliePayments") #IF(#IsMollieAdded AND #UsableAtStorefront AND NOT #IsMolliePaymentsFirst)
#IF(#NewPaymentMethods)

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

#LOOP(#NewPaymentMethods)

#Attributes.Alias

#ENDLOOP

{SetNewPaymentsMethodsVisible}

#ENDIF
#REM#ENDREM #LOCAL("MollieAllPaymentMethodsUsed", 0) #LOCAL("PaymentsCount", 0) #IF(#Shop.FeatureMaxValue.MollieLimited) #LOOP(#PaymentMethods) #IF(#Class.Alias EQ "PaymentMethodMolliePayments") #SET("PaymentsCount", #PaymentsCount + 1) #ENDIF #ENDLOOP #IF(#COUNT(#MollieLimitedPaymentMethods) NEQ #PaymentsCount) #SET("MollieAllPaymentMethodsUsed", 1) #ENDIF #ENDIF #IF(#MollieAllPaymentMethodsUsed)

{AllMolliePaymentMethodsSet}

#ELSE

#IF(#PaymentsCount NEQ 1){FirstMolliePaymentMethodAdded}#ELSE#SPACE[0]{CoupleOfMolliePaymentMethodAdded}#ENDIF

#ENDIF #ENDLOCAL #REM#ENDREM #ENDLOCAL #REM#ENDREM
#INCLUDE("MollieMultiPaymentsDialogScript") #SET("IsMolliePaymentsFirst", 1) #ELSIF(NOT #UsableAtStorefront) #REM#ENDREM

{MolliePaymentNotAlreadyCompletedHeadline}

{CompleteMolliePayments} {SettingsPageMolliePaymentsLink}

#ENDIF #ENDIF #ENDLOOP #ENDLOCAL #REM #ENDREM #IF(NOT #IsMollieAdded)
#LOCAL("MolliePaymentsID", 0) #LOCAL("MollieDisplayIconsAlways", #MollieDisplayIconsAlways(#System.Object)) #LOCAL("MollieDisplayLocalizedIcons", #MollieDisplayLocalizedIcons(#Shop.Object)) #LOCAL("HrefLanguage", "gb") #IF(#Language EQ "en" OR #Language EQ "de" OR #Language EQ "fr" OR #Language EQ "nl") #SET("HrefLanguage", #Language) #ENDIF #LOOP(#System.PaymentTypes) #IF(#Alias EQ "MolliePayments") #SET("MolliePaymentsID", #ID) #ENDIF #ENDLOOP

{PaymentMethodStandardMollie}

{PaymentMethodStandardMollieIcons}:
#IF(#Shop.FeatureMaxValue.MollieLimited) #LOOP(#MollieLimitedPaymentMethods) #ENDLOOP #ELSE #LOOP(#MollieDisplayIconsAlways) #ENDLOOP #LOOP(#MollieDisplayLocalizedIcons) #ENDLOOP {AndMorePaymentsButton} #ENDIF
{ConnectWithMollieButton} #REM#ENDREM

{NoAccountYetLink} {CreateMollieAccount} #REM#ENDREM

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