I've tried to do that, but provider token is NULL though @Value is determined by Spring.
@Slf4j
public class CheckoutHandler {
private SendInvoice sendInvoice;
@Value("${providerToken}")
String providerToken;
Maybe it has something to do with how I initialize the class
CheckoutHandler checkoutHandler = new CheckoutHandler();
Please tell me how to correctly substitute the value from the application context