#WITH_ERROR(#FormError)
#IF (#FormError OR #HasSpreedlyConnectionError)
#IF(#HasSpreedlyConnectionError)

{Error}

{OnBoardingError} #ELSE

{InputError}

#Reason #ENDIF
#ENDIF #LOCAL("StripePaymentIntentsFeatureIsAvailable", 0) #LOOP(#Shop.FeatureValues) #IF((#Feature.Alias EQ "SpreedlyStripePaymentIntents") AND #MaxValue > 0) #SET("StripePaymentIntentsFeatureIsAvailable", 1) #ENDIF #ENDLOOP #IF(#StripePaymentIntentsFeatureIsAvailable == 1) #LOCAL("StripePaymentIntentsPaymentGroupID", "0") #LOOP(#System.PaymentGroups) #IF(#DEFINED(#Alias) AND #Alias EQ "Stripe") #SET("StripePaymentIntentsPaymentGroupID", #ID) #ENDIF #ENDLOOP #IF(#StripePaymentIntentsPaymentGroupID NE "0")

{NewStripePaymentIntentsIntegrationAvailable}
{NewStripePaymentIntentsIntegrationSetUp}

#ENDIF #ENDLOCAL #ENDIF #ENDLOCAL #IF(#SetInvisible)

{Notification}

{SetPaymentMethodInvisible}

#ENDIF #IF(#NewPaymentMethods) #ENDIF #IF(#NewSpreedlyMethodNothingSelected)

{NewPaymentMethodNothingSelected}

#ENDIF
#IF(NOT #IsTokenSet)

{StripeInfo0Before}

#ELSE

{StripeInfo0After}

#ENDIF
    #IF(NOT #IsTokenSet)
  1. {StripeInfo1} {StripeInfo1Link}

  2. #ELSE
  3. {StripeInfo2}

  4. {StripeInfo3}

  5. #ENDIF
#INCLUDE("INC-StatusSpreedly") #IF(#IsTokenSet) {StripeReconnectLink}

#ELSE

#ENDIF
{PaymentMethod}

#INCLUDE("INC-CreatePaymentMethodsSpreedly")
#ENDWITH_ERROR