Magento2 Change the payment method title dynamically based on the text set from admin
I have created a test payment method using following reference.
https://webkul.com/blog/create-custom-payment-method-magento2/
I need to show the payment method title on checkout page based on a text box value set in admin. How can I achieve that? For e.g. as we can change the Flatrate & check/money order title from admin