#LOCAL(CanSandBox, 0) #LOCAL(OnBoardCompleted, 0) #LOCAL(AccountSupportsPUI, 0) #LOCAL(PrimaryEmailConfirmed, 0) #LOCAL(PaymentsReceivable, 0) #IF( #MerchantInfoJSON.primary_email_confirmed ) #SET("PrimaryEmailConfirmed", 1) #ENDIF #IF( #MerchantInfoJSON.payments_receivable ) #SET("PaymentsReceivable", 1) #ENDIF #IF( #PaymentType AND #PaymentType.PartnerMerchantID_SandBox AND #PaymentType.PartnerClientID_SandBox AND #PaymentType.PartnerClientSecret_SandBox ) #SET("CanSandBox", 1) #ENDIF #IF( #ClientID AND #ClientSecret ) #SET("OnBoardCompleted", 1) #ENDIF
#WITH_ERROR(#FormError)
#IF(#SetInvisible)

{Notification}

{SetPaymentMethodInvisible}

#ENDIF #IF( #OnBoardCompleted AND #RegisteredWebHooksResponse AND #PaymentsReceivable AND #PrimaryEmailConfirmed AND NOT #IsActivated)

{Notification}

{CanBeUsedButNotVisible}

#ENDIF #IF( #OnBoardCompleted AND NOT #RegisteredWebHooksResponse )

{Notification}

{WebHooksNotRegistered}

#ENDIF #LOOP(#FormErrors.Reasons)

{Notification}

#IF(#Reason EQ "NoAccessToken")

{NoAccessToken}

#ELSIF(#Reason EQ "NoMerchantApp")

{NoMerchantApp}

#ELSIF(#Reason EQ "DisconnectFailed")

{DisconnectFailed}

#ENDIF
#ENDLOOP
#IF( #OnBoardCompleted ) #IF( #ONBOARD_JUST_COMPLETED )

{OnBoardCompleted}

#ENDIF

{Details}

#REM#ENDREM
#REM#ENDREM
#IF(#IsInTestMode) {ItIsInTestMode} #ENDIF
#REM #ENDREM
#REM #ENDREM
#IF(#MerchantInfoJSON.legal_name) #MerchantInfoJSON.legal_name #ENDIF
#REM #ENDREM
#REM #ENDREM
#IF(#MerchantInfoJSON.merchant_id) #MerchantInfoJSON.merchant_id #ENDIF
#REM #ENDREM
#REM #ENDREM
#IF(#MerchantInfoJSON.primary_email) #MerchantInfoJSON.primary_email #ENDIF
#REM #ENDREM
#REM #ENDREM #IF( NOT #PaymentsReceivable )

{PaymentsNotReceivable}

#ELSIF ( NOT #PrimaryEmailConfirmed )

{PrimaryEmailNotConfirmed}

#ELSE #REM #ENDREM #REM #ENDREM
{Capabilities}
#REM#ENDREM
#REM#ENDREM
    #IF(#MerchantInfoJSON.capabilities) #LOOP(#MerchantInfoJSON.capabilities) #IF(#status EQ "ACTIVE") #IF(NOT #Shop.FeatureMaxValue.PayPalPPCP_S AND #name EQ "PAY_UPON_INVOICE") #SET(AccountSupportsPUI, 1)
  • {PAY_UPON_INVOICE}
  • #ELSIF(#name EQ "STANDARD_CARD_PROCESSING")
  • {STANDARD_CARD_PROCESSING}
  • #ELSIF(NOT #Shop.FeatureMaxValue.PayPalPPCP_S AND #name EQ "ALT_PAY_PROCESSING")
  • {ALT_PAY_PROCESSING}
  • #ENDIF #ENDIF #ENDLOOP #ELSIF(#MerchantInfoJSON.products) #LOOP(#MerchantInfoJSON.products) #IF(#status EQ "ACTIVE") #IF(#name EQ "EXPRESS_CHECKOUT")
  • {EXPRESS_CHECKOUT}
  • #ENDIF #ENDIF #ENDLOOP #ENDIF
#REM #ENDREM
#REM #ENDREM

{Settings}

{EnableCartButtonsTooltip}
#IF(#CountrySupportsPayLater)
{EnablePayLaterTooltip}
{EnablePayLaterBannersTooltipLinkText}
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM
{EnablePayLaterBannersTooltip}
{EnablePayLaterBannersTooltipLinkText}
#ENDIF #IF(NOT #Shop.FeatureMaxValue.PayPalPPCP_S AND #AccountSupportsPUI)
{ConnectedStateEnablePUITooltip}
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM #ENDIF #IF( NOT #Shop.FeatureMaxValue.PayPalPPCP_S AND #MerchantInfoJSON.capabilities AND #COUNT(#DISABLEABLE_FUNDING_SOURCES) )
{FurtherOptions}
#IF( #COUNT(#DISABLEABLE_FUNDING_SOURCES) )

{SelectPaymentOption} {SelectPaymentOptionTooltip}

#LOOP(#FROMHASH(#DISABLEABLE_FUNDING_SOURCES_MAP))
#ENDLOOP
#ENDIF #ENDIF #ENDIF

#REM#ENDREM
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM #ENDIF #IF(NOT #OnBoardCompleted)

{InfoHeadline}

  1. {Info1} {CreateBusinessAccount}
  2. {Info2}
#ENDIF #IF( NOT #OnBoardCompleted )
#IF(#CanSandBox OR #Site.Address.CountryID == 276)

{Details}

#REM#ENDREM
#REM#ENDREM #IF(#CanSandBox)
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM #ENDIF #IF(NOT #Shop.FeatureMaxValue.PayPalPPCP_S AND #Site.Address.CountryID == 276)
{OnBoardForPUITooltip}
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM #ENDIF #ENDIF #REM #ENDREM #IF ( #ReferralLink )

{ConnectionPPCP}

#REM#ENDREM
#REM#ENDREM
#REM#ENDREM
#REM#ENDREM #ENDIF #REM
#ENDREM
#REM#ENDREM
#REM#ENDREM #ENDIF
#REM #ENDREM #ENDWITH_ERROR
#REM #ENDREM #IF ( #ReferralLink ) #ENDIF #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL