static function (ContainerInterface $container): callable { $save_payment_methods_applies = $container->get('card-fields.helpers.save-payment-methods-applies'); assert($save_payment_methods_applies instanceof CardFieldsApplies); return static function () use ($save_payment_methods_applies): bool { return $save_payment_methods_applies->for_country() && $save_payment_methods_applies->for_merchant(); }; }, 'card-fields.helpers.save-payment-methods-applies' => static function (ContainerInterface $container): CardFieldsApplies { return new CardFieldsApplies($container->get('api.dcc-supported-country-currency-matrix'), $container->get('api.merchant.country')); }, 'card-fields.service.card-capture-validator' => static function (ContainerInterface $container): CardCaptureValidator { return new CardCaptureValidator(); });