I need to be able to output the price of a subscription after the user has subscribed. I'm using the Stripe Gateway. This post indicates to use {{ subscriptionPlanData.plan.amount }}
but that doesn't seem to work for Commerce 3.
Commerce 2 Subscription Prices
The code below works but only after you refresh the payment history for the subscription in the admin, which seems to be a manual task.
{% set payments = subscription.getAllPayments() %}
{% if payments %}
{% for payment in payments %}
${{ payment.paymentAmount|number_format(2, '.', ',') }}
{% endfor %}
{% endif %}
Any idea how to get that payment history to automatically refresh after a subscription? Since that includes taxes, etc. that might be the best solution?