#WITH_ERROR(#FormError)
#IF(#GetMerchantStatusError EQ "1")

{ConnectionFailed}

{CheckCredentials}

#ENDIF #IF(#SetInvisible)

{Notification}

{SetPaymentMethodInvisible}

#ENDIF #REM #ENDREM #IF (#SplitGatewayMethod EQ "Klarna") #IF( NOT #AreMandatoryFieldsSet)

{RequiredBillingAddressFieldsForPayment} {Country}
{EditRegistrationSet}
{EditShippingAdressFormFields}

#ENDIF #ENDIF #REM #ENDREM #IF(#NewPaymentMethods)

{NewPaymentMethodsCreated}

#LOOP(#NewPaymentMethods)
#ENDLOOP
#ENDIF

{Info0}

    #IF(#IsInTestMode==0)
  1. {Info1} {RegisterURL}

  2. #ELSE
  3. {Info1} {RegisterURL}

  4. #ENDIF
  5. {Info2} {ClickSave}

  6. {Info3}

{RegisterDataInfo}

{JSONAPIUserName} {MandatoryStar}
{JSONAPIPassword} {MandatoryStar}
{CustomerId} {MandatoryStar}
{TerminalId} {MandatoryStar}
{PaymentMethod}
{Mode}
{IsDirectCapture} {BubbleHelpIsDirectCapture}

{NewSaferpay2MethodInfo}

#INCLUDE("INC-MBO-MultiPaymentMethodTableSettings") #IF( NOT #CanReplicatePayment OR (#Shop.FeatureMaxValue.PaymentMethods <= #Shop.FeatureCurrentValue.PaymentMethods))
{NewPaymentMethod}

#IF(#Shop.FeatureMaxValue.PaymentMethods <= #Shop.FeatureCurrentValue.PaymentMethods)
{FeatureMaxValueReached}
#ENDIF
#ENDIF

{SelectMethods}
#LOOP(#FUNCTION("ShopPaymentLogos", #Shop.Object, "Saferpay2")) #IF(#Image)
#ENDIF #ENDLOOP

#ENDWITH_ERROR #IF(#FUNCTION("MENU_COUNT", "RelatedTopic") > 0)

{RelatedTopics}

#ENDIF