My subscription process with stripe payment form is not showing up anymore in Craft V4.
CraftCMS 4.6.1 + Craft Commerce 4.4.1.1 + Stripe for Craft Commerce 4.1.2.3.
I got this message now:
Can not use the Stripe payment form to subscribe. Please create a payment source first.
Here the code of my signup page:
{% set plan1 = craft.commerce.getPlans().getPlanByHandle('membershipPlan5MonthlyTest') %}
{% set paymentSources = craft.commerce.getPaymentSources().getAllGatewayPaymentSourcesByCustomerId(plan1.gateway.id, currentUser.id ?? null) %}
<div class="paymentForm">
{{ plan1.gateway.getPaymentFormHtml({})|raw }}
</div>
For info I mounted an old version of the project with Craft V3 and it is still working.
So the problem does not come from Stripe...
Any ideas as to how to fix this?