Need Help Integrating Stripe Payment Flow in Member Management App

Hi Everyone,

I’m working on a member management app where users can register themselves and pay the membership fee through a subscription using Stripe.

I’ve created a doctype for members in the app. When a new member registers, I use the before_insert method to integrate Stripe and create a subscription.

However, I’m facing an issue. Stripe returns a client_secret that I need to use in order to render the payment form for card payments. I’m not sure how to implement this properly. Can anyone suggest the best way to handle this?