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