How to update "Pay Installments banner" after quantity changed?

Hi.
Is there a formal way or API to update the “Pay Installments banner” ?
Thanks.

{% form 'product', product %}
  
  {{ form | payment_terms }}

  
{% endform %}