Stripe subscription, custom checkout without leaving page

Trying to get my head around Stripe Subscriptions. Spent a few hours going through he docs, but I am struggling to get simplicity.

I have one single subscription with a monthly recurring fixed price setup in Stripe.

WHAT I HAVE TRIED



<form method="post" action="../dmxConnect/api/create_subscription.php" dmx-on:error="toast_stripe_subscribe.show({message: 'Error: '+error})" is="dmx-stripe-checkout-form" id="form_stripe_subscribe">
Stripe Card

The payment intent works, and payment is received, however the payment isn’t applied to the Subscription.
The Subscription was created successfully and an invoice is generated, but incomplete as “The customer hasn’t attempted to pay this invoice yet.”)

So the successful payment intent isn’t applied to the created subscription.

Any advice, assistance greatly appreciated. @Patrick, any ideas?

Hi cpuser,

Just came across this and I am trying to do the same thing on my site - have you had any luck with this following the post?

Thanks,

Leo