44
55namespace Fintecture \Payment \Helper ;
66
7+ use Fintecture \Payment \Gateway \Config \BnplConfig ;
78use Fintecture \Payment \Gateway \Config \Config ;
89use Fintecture \Payment \Logger \Logger as FintectureLogger ;
910use Fintecture \Payment \Model \Environment ;
@@ -17,6 +18,9 @@ class Stats
1718 /** @var Config */
1819 protected $ config ;
1920
21+ /** @var BnplConfig */
22+ protected $ bnplConfig ;
23+
2024 /** @var FintectureLogger */
2125 protected $ fintectureLogger ;
2226
@@ -34,13 +38,15 @@ class Stats
3438
3539 public function __construct (
3640 Config $ config ,
41+ BnplConfig $ bnplConfig ,
3742 FintectureLogger $ fintectureLogger ,
3843 ResourceConnection $ resourceConnection ,
3944 ProductMetadataInterface $ productMetadata ,
4045 PaymentConfig $ paymentConfig ,
4146 StoreManagerInterface $ storeManager
4247 ) {
4348 $ this ->config = $ config ;
49+ $ this ->bnplConfig = $ bnplConfig ;
4450 $ this ->fintectureLogger = $ fintectureLogger ;
4551 $ this ->resourceConnection = $ resourceConnection ;
4652 $ this ->productMetadata = $ productMetadata ;
@@ -99,6 +105,8 @@ public function getConfigurationSummary(): array
99105 'module_production_app_id ' => $ this ->config ->getAppId (Environment::ENVIRONMENT_PRODUCTION ),
100106 'module_branding ' => $ this ->config ->isShowLogo (),
101107 'module_checkout_design ' => $ this ->config ->getCheckoutDesign (),
108+ 'module_recommended_it ' => $ this ->config ->isRecommendedItBadgeActive (),
109+ 'module_recommended_bnpl ' => $ this ->bnplConfig ->isRecommendedBnplBadgeActive (),
102110 ];
103111 }
104112}
0 commit comments