@@jeremypersing4484 how do you make a reference to the customer's id after checkout. the email can entered in the payment link can be different from the one your database. any ideas?
If a user enters in a different emails for their account and checkout session, I would deal with this manually. There are probably other ways of doing it, like maybe you could check your db to see if the customers email exists once they purchase their product, and if it doesn't you could create an account which has info stating it still needs to be set up, then alter the auth flow for this special situation. I don't foresee that happening very often, so I would just make sure that customers have the ability to reach you through email or a feedback popup and they will likely reach out with any concerns.
It depends on what you mean by register your company. If you already have a company registered through a state (assuming you’re in the US) then you would use the tax information for that company when setting up your stripe account. But if you mean you want to start accepting payments, and you’re asking do you need a company to start accepting them, the answer is that you do not. You can incorporate a business using stripe though, but personally, I’d make sure my service was actually generating cash before going through that. PS. This is not legal advice and I’m not a financial adviser.
I don’t think so. I’m using that webhook for when customers delete their subscription. I think the event “invoice.payment_succeeded” would be what you’re referring to.
If you want a Saas template that uses Nextjs 14 and Stripe, preorder the template at www.nextmantinesaas.com. You can also leave your email there to be notified when it comes out.
Thanks. In this video it’s for a one time purchase, but you can make it for a subscription as well using the same logic. You just need to handle it differently when the checkout session completed successfully.
thanks for this very clear tutorial!
Glad it was helpful!
@@jeremypersing4484 how do you make a reference to the customer's id after checkout. the email can entered in the payment link can be different from the one your database. any ideas?
If a user enters in a different emails for their account and checkout session, I would deal with this manually. There are probably other ways of doing it, like maybe you could check your db to see if the customers email exists once they purchase their product, and if it doesn't you could create an account which has info stating it still needs to be set up, then alter the auth flow for this special situation. I don't foresee that happening very often, so I would just make sure that customers have the ability to reach you through email or a feedback popup and they will likely reach out with any concerns.
Hey so if I want to accept real payement in my SAAS,should I register my company or something ?
It depends on what you mean by register your company. If you already have a company registered through a state (assuming you’re in the US) then you would use the tax information for that company when setting up your stripe account. But if you mean you want to start accepting payments, and you’re asking do you need a company to start accepting them, the answer is that you do not. You can incorporate a business using stripe though, but personally, I’d make sure my service was actually generating cash before going through that.
PS. This is not legal advice and I’m not a financial adviser.
Thank you, I enjoyed the video.
does 'customer.subscription.updated' automatically get fired when a user gets pays for the next interval like monthly weekly etc?
I don’t think so. I’m using that webhook for when customers delete their subscription. I think the event “invoice.payment_succeeded” would be what you’re referring to.
Hey man, where i can copy the code? Could you post it in your github repository, please?
Vey helpful.. thanks🙏🏼
Glad it was helpful!
great video, helped me out!
Thank you, I’m glad it was helpful!
If you want a Saas template that uses Nextjs 14 and Stripe, preorder the template at www.nextmantinesaas.com. You can also leave your email there to be notified when it comes out.
This received 2 emails after 2.5k views, so I deemed it not worth pursuing.
Good video however Is it for one time purchase or for subscription?
Thanks. In this video it’s for a one time purchase, but you can make it for a subscription as well using the same logic. You just need to handle it differently when the checkout session completed successfully.
can we integarate payement by card and paypal pls in one form using stripe
Apparently you can but I don't see any configuration for it with the checkout links. docs.stripe.com/payments/paypal/connect-your-paypal-account
Great video 🔥
Thank you!
What about the refund api?
I usually just handle these manually.
@@jeremypersing4484 Okay, thanks for that!
You’re welcome
@@jeremypersing4484 do you manually update the db after refunding? (removing access)?
Yes I would, so long as you don’t want the no longer paying customer to have access.
Would you be interested in being hired to do this integration for a project I’ve been working on? Please let me know how I can reach out to you.
Yeah I could help with something like that. You can reach me by email at jpersing1999@gmail.com.