#novasdream_subscription-pattern

1 messages ยท Page 1 of 1 (latest)

dark tangleBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1251170006247538790

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

safe aspen
#

I don't understand the question

thick trout
# safe aspen I don't understand the question

I need assistance designing a flow for unlogged users in my system. Currently, I have a working flow for logged users that integrates with Stripe as follows:

Prices are displayed using a prices API.
When a logged user clicks on a price/product, a page is displayed with a credit card slot.
I pass the user's email to Stripe to create a customer and save the customerID to the logged user.
This allows me to create a clientSecret for processing payments.
Now, I need to implement a similar flow for unlogged users who will eventually need to create an account to use the system. What approach should I use to define the customerID for an unlogged user, and how can I handle the payment process effectively for these users?

thick trout
safe aspen
#

Yes that makes sense

#

I recommend requiring the user to create an account on your site prior to creating a subscription

#

That would eliminate issues

#

Is letting unlogged-in users create subscriptions a hard requirement?

dark tangleBOT
#

novasdream_subscription-pattern

thick trout
# safe aspen Is letting unlogged-in users create subscriptions a hard requirement?

It is a SaaS and we work only with subscription.

For the unlogged users see the payment page its more like for unlogged users see the price of our platform and be able to pay with no account yet.

your suggestion are similar with the approach of use a multiple step when doing a payment for unlogged? (register customer data and so do the payment)

pale ginkgo
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. It's largely up to you to decide on what flow best fits the look-and-flow that you're trying to achieve for your site. You will need to have a Customer object created in order to create a Subscription for them, but you can create a Customer object without providing any information, no fields are required for that.