Based on this post I could pass some data to the window.checkoutConfig
, this is great.
My problem is, that my data is dinamycdynamic and my plugin runs later, when magento collects the paymentmethodspayment methods. I want to add some extra information (shipping date) to my template file.
How can I do this, how can I access data from my plugin?
In my template file:
<div class="payment-method-title field choice">
<input type="radio"
name="payment[method]"
class="radio"
data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
<label data-bind="attr: {'for': getCode()}" class="label"><span data-bind="text: getTitle()"></span></label>
<!--
I want to put some info here from window.checkoutConfig
I just do not know how to pass the data after my plugins run.
-->
</div>