#Jasuno
1 messages · Page 1 of 1 (latest)
Hi, can you add more details? Payment Intent is created automatically after you create a Subscription. You'd want to read this documentation to learn more: https://stripe.com/docs/billing/subscriptions/overview
So how want to start a subscription schedule but i do not want to use the check out session, i want to make it custom so i wanted to know if i can create a subscription and the pay the invoice with my own ui
I would start reading this documentation: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements. Can you add more details to your use case?
In my specific case we are creating a rental property management application, so we are setting up all the landlords with connect accounts. Once the landload invites a tenant it will create a lease instance which will create a stripe product and a price attached to it, but rent is a re-accuring charge so we want to create a subcription when the lease is created, the tenant should be able to go into kera (our application) and pay their rent. Once the tenant logins in to pay their rent we gar going to have custome UI to start that proccess. I need to know if i can create a subscription once the lease is created and then use our custom UI to charge the first payment on that subscription.
Thing to keep in mind:
1.- The first payment may not happen at the same time the subscription is created.
2.- We want to use the same UI to to keep chaging the next invoices for the same subscription
Or will the subscription start once they make the first payment? since in the price we set recurring (montly)
Hi @safe otter I'm taking over, give me a sec to catch up
take your time
If the subscription starts after the first payment is make then i can use a payment intent and attach the price to it which will start the subscription
OK, so basically you have your own frontend integration that is ready to accept a payment intent secret and you want to use that to pay the first invoice of the subscription, is this the correct understanding?
yeah my frontend is connected to my backend which is connected to stripe
Great. https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#collect-payment I believe this will help you
thanks
No problem. remember to set payment_settings: { save_default_payment_method: 'on_subscription' }, when creating the subscription, so that collected payment_method will set as the default_payment_method for the subscription, so that Stripe will use it to automatically pay the subsequent invoices generated by the subscription.